diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-02-26 05:11:06 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-02-26 05:11:06 +0000 |
commit | 339bcfd05d3260a123ccf3c06429da6bfe621f74 (patch) | |
tree | b3c5daa1fc2b6f553fd0ee944f23643d16dc537e /source/libsmb | |
parent | a5407366b77f2bec2c21e1f36dd007813d33f75e (diff) | |
download | samba-339bcfd05d3260a123ccf3c06429da6bfe621f74.tar.gz samba-339bcfd05d3260a123ccf3c06429da6bfe621f74.tar.xz samba-339bcfd05d3260a123ccf3c06429da6bfe621f74.zip |
fixed a bug in non-terminated unicode strings with clistr_pull()
Diffstat (limited to 'source/libsmb')
-rw-r--r-- | source/libsmb/clistr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/clistr.c b/source/libsmb/clistr.c index e07b4d5a63d..52137d9f78a 100644 --- a/source/libsmb/clistr.c +++ b/source/libsmb/clistr.c @@ -140,7 +140,7 @@ int clistr_pull(struct cli_state *cli, char *dest, const void *src, int dest_len len = strlen(dest)*2 + 2; } else { int i, c; - if (dest_len < src_len) src_len = dest_len; + if (dest_len*2 < src_len) src_len = 2*dest_len; for (i=0; i < src_len; i += 2) { c = SVAL(src, i); *dest++ = c; |