diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-07-10 02:28:04 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-07-10 02:28:04 +0000 |
commit | ee53f39e9acfc255fd584c695ca4a23b9deb8511 (patch) | |
tree | 631f9141a20e751c424de8a5c2f00dae728eae89 /src/fstring.h | |
parent | 59b42558f5fca931c054df87d94c119f87130ec0 (diff) | |
download | libbu++-ee53f39e9acfc255fd584c695ca4a23b9deb8511.tar.gz libbu++-ee53f39e9acfc255fd584c695ca4a23b9deb8511.tar.bz2 libbu++-ee53f39e9acfc255fd584c695ca4a23b9deb8511.tar.xz libbu++-ee53f39e9acfc255fd584c695ca4a23b9deb8511.zip |
OK, this time I really fixed it so that it compares raw strings and FStrings
the right way.
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; |