diff options
author | nyamatongwe <unknown> | 2004-04-12 05:44:13 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2004-04-12 05:44:13 +0000 |
commit | 5e27ecc91420e4218c79dc733e7ddaa67464adb8 (patch) | |
tree | 42c5bdae9adb220801b6cd86c1b3ec1fee162a3f /include/SString.h | |
parent | 2443e8c2a5d7bd638edd04ee8fe06d0294a4f7d3 (diff) | |
download | scintilla-mirror-5e27ecc91420e4218c79dc733e7ddaa67464adb8.tar.gz |
SString::operator= more compatible with embedded \0 bytes.
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. |