aboutsummaryrefslogtreecommitdiff
path: root/src/fstring.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-07-11 01:48:47 +0000
committerMike Buland <eichlan@xagasoft.com>2007-07-11 01:48:47 +0000
commitaa4d4db13e647842ad2ad941aeed5bf8b60c4a08 (patch)
tree91e0a93c00d717332c01a237dbb169ba20af7be9 /src/fstring.h
parentee53f39e9acfc255fd584c695ca4a23b9deb8511 (diff)
downloadlibbu++-aa4d4db13e647842ad2ad941aeed5bf8b60c4a08.tar.gz
libbu++-aa4d4db13e647842ad2ad941aeed5bf8b60c4a08.tar.bz2
libbu++-aa4d4db13e647842ad2ad941aeed5bf8b60c4a08.tar.xz
libbu++-aa4d4db13e647842ad2ad941aeed5bf8b60c4a08.zip
Fixed a horrifying FString bug.
Diffstat (limited to 'src/fstring.h')
-rw-r--r--src/fstring.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fstring.h b/src/fstring.h
index f52b6f1..72ac99d 100644
--- a/src/fstring.h
+++ b/src/fstring.h
@@ -676,7 +676,10 @@ namespace Bu
676 void copyFrom( const FBasicString<chr, nMinSize, chralloc, chunkalloc> &rSrc ) 676 void copyFrom( const FBasicString<chr, nMinSize, chralloc, chunkalloc> &rSrc )
677 { 677 {
678 if( rSrc.pFirst == NULL ) 678 if( rSrc.pFirst == NULL )
679 {
680 clear();
679 return; 681 return;
682 }
680 683
681 Chunk *pNew = newChunk( rSrc.nLength ); 684 Chunk *pNew = newChunk( rSrc.nLength );
682 chr *pos = pNew->pData; 685 chr *pos = pNew->pData;