diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-07-11 01:48:47 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-07-11 01:48:47 +0000 |
commit | aa4d4db13e647842ad2ad941aeed5bf8b60c4a08 (patch) | |
tree | 91e0a93c00d717332c01a237dbb169ba20af7be9 /src | |
parent | ee53f39e9acfc255fd584c695ca4a23b9deb8511 (diff) | |
download | libbu++-aa4d4db13e647842ad2ad941aeed5bf8b60c4a08.tar.gz libbu++-aa4d4db13e647842ad2ad941aeed5bf8b60c4a08.tar.bz2 libbu++-aa4d4db13e647842ad2ad941aeed5bf8b60c4a08.tar.xz libbu++-aa4d4db13e647842ad2ad941aeed5bf8b60c4a08.zip |
Fixed a horrifying FString bug.
Diffstat (limited to 'src')
-rw-r--r-- | src/fstring.h | 3 |
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; |