diff options
Diffstat (limited to 'include/SString.h')
| -rw-r--r-- | include/SString.h | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/include/SString.h b/include/SString.h index 960945dbc..659f8b0c8 100644 --- a/include/SString.h +++ b/include/SString.h @@ -88,7 +88,7 @@ public:  	}  	SString &operator=(const SString &source) {  		if (this != &source) { -			assign(source.c_str()); +			assign(source.c_str(), source.sLen);  		}  		return *this;  	} @@ -150,7 +150,8 @@ public:  	}  	SString &insert(lenpos_t pos, const char *sOther, lenpos_t sLenOther=measure_length); -	/** Remove @a len characters from the @a pos position, included. +	/** +	 * Remove @a len characters from the @a pos position, included.  	 * Characters at pos + len and beyond replace characters at pos.  	 * If @a len is 0, or greater than the length of the string  	 * starting at @a pos, the string is just truncated at @a pos. | 
