mirror of
https://gitlab.com/rnger/amath
synced 2026-05-08 23:44:57 +00:00
Fixed read of wrong address in empty strings
This commit is contained in:
@@ -217,6 +217,10 @@ void CharBuffer::Append(const char* source)
|
||||
|
||||
bool CharBuffer::RemoveTrailing(const char c)
|
||||
{
|
||||
if (ptr == buf) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (*(--ptr) == c) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user