diff options
Diffstat (limited to 'src/fstring.h')
-rw-r--r-- | src/fstring.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fstring.h b/src/fstring.h index fe3daf1..f52b6f1 100644 --- a/src/fstring.h +++ b/src/fstring.h | |||
@@ -399,10 +399,12 @@ namespace Bu | |||
399 | flatten(); | 399 | flatten(); |
400 | const chr *a = pData; | 400 | const chr *a = pData; |
401 | chr *b = pFirst->pData; | 401 | chr *b = pFirst->pData; |
402 | for( long j = 0; *a!=(chr)0 && j < nLength; j++, a++, b++ ) | 402 | for( long j = 0; *a!=(chr)0 || *b!=(chr)0; j++, a++, b++ ) |
403 | { | 403 | { |
404 | if( *a != *b ) | 404 | if( *a != *b ) |
405 | return false; | 405 | return false; |
406 | if( *a == (chr)0 && j < nLength ) | ||
407 | return false; | ||
406 | } | 408 | } |
407 | 409 | ||
408 | return true; | 410 | return true; |