From 59b42558f5fca931c054df87d94c119f87130ec0 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 10 Jul 2007 02:15:40 +0000 Subject: Updated the FString to const char * string comparison, it should work better now, but some more testing needs to be done. --- src/fstring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fstring.h b/src/fstring.h index 31794d7..fe3daf1 100644 --- a/src/fstring.h +++ b/src/fstring.h @@ -399,7 +399,7 @@ namespace Bu flatten(); const chr *a = pData; chr *b = pFirst->pData; - for( ; *a!=(chr)0 || *b!=(chr)0; a++, b++ ) + for( long j = 0; *a!=(chr)0 && j < nLength; j++, a++, b++ ) { if( *a != *b ) return false; -- cgit v1.2.3