diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-07-09 23:47:12 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-07-09 23:47:12 +0000 |
commit | e3287beb03915aea7f2133147cb7b1d766daf079 (patch) | |
tree | 03c8b67c79c8ed6a8e04555ada5d26694ff9143f /src | |
parent | 316a5c83815a23d977785075c5dade4f6321ae09 (diff) | |
download | libbu++-e3287beb03915aea7f2133147cb7b1d766daf079.tar.gz libbu++-e3287beb03915aea7f2133147cb7b1d766daf079.tar.bz2 libbu++-e3287beb03915aea7f2133147cb7b1d766daf079.tar.xz libbu++-e3287beb03915aea7f2133147cb7b1d766daf079.zip |
Fixed a bug in a new constructor.
Diffstat (limited to '')
-rw-r--r-- | src/fstring.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fstring.h b/src/fstring.h index be88ec0..00bb12c 100644 --- a/src/fstring.h +++ b/src/fstring.h | |||
@@ -75,8 +75,11 @@ namespace Bu | |||
75 | pFirst( NULL ), | 75 | pFirst( NULL ), |
76 | pLast( NULL ) | 76 | pLast( NULL ) |
77 | { | 77 | { |
78 | rSrc.flatten(); | 78 | if( rSrc.nLength > 0 ) |
79 | append( rSrc.pFirst->pData, rSrc.nLength ); | 79 | { |
80 | rSrc.flatten(); | ||
81 | append( rSrc.pFirst->pData, rSrc.nLength ); | ||
82 | } | ||
80 | } | 83 | } |
81 | 84 | ||
82 | FBasicString( const MyType &rSrc, long nLength ) : | 85 | FBasicString( const MyType &rSrc, long nLength ) : |