mirror of
https://github.com/NoelFB/blah.git
synced 2026-11-10 00:35:14 +08:00
small fix to previous string commit
This commit is contained in:
1 parent
916ddc2020
commit
90cb51110d
1 file changed
+2
-1
@@ -140,6 +140,7 @@ namespace Blah
|
|||||||
m_heap_buffer.erase(new_length, s_len() - new_length);
|
m_heap_buffer.erase(new_length, s_len() - new_length);
|
||||||
else
|
else
|
||||||
m_stack_buffer.erase(new_length, s_len() - new_length);
|
m_stack_buffer.erase(new_length, s_len() - new_length);
|
||||||
|
s_ptr()[new_length - 1] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
StackString trim() const
|
StackString trim() const
|
||||||
@@ -385,4 +386,4 @@ namespace std
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user