diff options
Diffstat (limited to '')
-rw-r--r-- | src/fstring.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fstring.h b/src/fstring.h index ee6be28..8cccd5c 100644 --- a/src/fstring.h +++ b/src/fstring.h | |||
@@ -246,6 +246,8 @@ namespace Bu | |||
246 | { | 246 | { |
247 | if( nLength == nNewSize ) | 247 | if( nLength == nNewSize ) |
248 | return; | 248 | return; |
249 | if( nNewSize < 0 ) | ||
250 | nNewSize = 0; | ||
249 | 251 | ||
250 | flatten(); | 252 | flatten(); |
251 | 253 | ||