mirror of
https://github.com/NoelFB/blah.git
synced 2025-02-19 13:28:29 +08:00
small fix to previous string commit
This commit is contained in:
parent
916ddc2020
commit
90cb51110d
@ -140,6 +140,7 @@ namespace Blah
|
||||
m_heap_buffer.erase(new_length, s_len() - new_length);
|
||||
else
|
||||
m_stack_buffer.erase(new_length, s_len() - new_length);
|
||||
s_ptr()[new_length - 1] = '\0';
|
||||
}
|
||||
|
||||
StackString trim() const
|
||||
@ -385,4 +386,4 @@ namespace std
|
||||
return result;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user