diff options
author | Gerald Carter <jerry@samba.org> | 2000-08-05 18:58:45 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2000-08-05 18:58:45 +0000 |
commit | 4ecd15cd5851e94808756e3da0ce6a066f0a0cd7 (patch) | |
tree | 1b5a1fa7bca7e8aad86d0170452f91ab96f7953e /source/rpc_parse/parse_misc.c | |
parent | b87c47cc8638a1930e55a45a126a778b188ce688 (diff) | |
download | samba-4ecd15cd5851e94808756e3da0ce6a066f0a0cd7.tar.gz samba-4ecd15cd5851e94808756e3da0ce6a066f0a0cd7.tar.xz samba-4ecd15cd5851e94808756e3da0ce6a066f0a0cd7.zip |
Fixed bug in init_unistr2_from_unistr() found by Elrond.
Thanks :-)
j-
Diffstat (limited to 'source/rpc_parse/parse_misc.c')
-rw-r--r-- | source/rpc_parse/parse_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/rpc_parse/parse_misc.c b/source/rpc_parse/parse_misc.c index c0b700c908a..73ea4b10d27 100644 --- a/source/rpc_parse/parse_misc.c +++ b/source/rpc_parse/parse_misc.c @@ -885,7 +885,7 @@ void init_unistr2_from_unistr (UNISTR2 *to, UNISTR *from) found = False; while (!found) { - if ((from->buffer)[i]=='\0' && (from->buffer)[(2*i)+1]=='\0') + if (from->buffer)[i]=='\0') found = True; else i++; |