From 139dcbb0bfcf648f18646dcbf0b7b4281c5d4490 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Sat, 5 Aug 2000 18:58:45 +0000 Subject: Fixed bug in init_unistr2_from_unistr() found by Elrond. Thanks :-) j- (This used to be commit 4ecd15cd5851e94808756e3da0ce6a066f0a0cd7) --- source3/rpc_parse/parse_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/rpc_parse/parse_misc.c') 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++; -- cgit