aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fstring.h2
1 files changed, 1 insertions, 1 deletions
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
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( ; *a!=(chr)0 || *b!=(chr)0; a++, b++ ) 402 for( long j = 0; *a!=(chr)0 && j < nLength; j++, a++, b++ )
403 { 403 {
404 if( *a != *b ) 404 if( *a != *b )
405 return false; 405 return false;