1
0
mirror of https://gitlab.com/rnger/amath synced 2025-10-05 18:39:41 +00:00

Fixed read of wrong address in empty strings

This commit is contained in:
llsth
2015-04-12 00:00:43 +02:00
parent df8205b810
commit c8f51571cc

View File

@ -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;
}