summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2000-08-05 18:58:45 +0000
committerGerald Carter <jerry@samba.org>2000-08-05 18:58:45 +0000
commit139dcbb0bfcf648f18646dcbf0b7b4281c5d4490 (patch)
treeb4e63ba892d9f0b6e40fa90191f9c69b65ee2f87 /source3
parent754f021fc73646887550da5a9813115229c779a8 (diff)
downloadsamba-139dcbb0bfcf648f18646dcbf0b7b4281c5d4490.tar.gz
samba-139dcbb0bfcf648f18646dcbf0b7b4281c5d4490.tar.bz2
samba-139dcbb0bfcf648f18646dcbf0b7b4281c5d4490.zip
Fixed bug in init_unistr2_from_unistr() found by Elrond.
Thanks :-) j- (This used to be commit 4ecd15cd5851e94808756e3da0ce6a066f0a0cd7)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_parse/parse_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c
index c0b700c908..73ea4b10d2 100644
--- a/source3/rpc_parse/parse_misc.c
+++ b/source3/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++;