From f87246df627f0d940b45f65f812c0c77a2dfa355 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 5 Jun 2000 14:06:13 +0000 Subject: simple increment bug in uniarray_2_dosarray (This used to be commit 6506e6f47085beeaa6588a361a220ab21fc32aa6) --- source3/rpc_parse/parse_spoolss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c index 34d77f132a..2e6f8ba590 100644 --- a/source3/rpc_parse/parse_spoolss.c +++ b/source3/rpc_parse/parse_spoolss.c @@ -3894,6 +3894,7 @@ static BOOL uniarray_2_dosarray(BUFFER5 *buf5, fstring **ar) src = skip_unibuf(src, 2*buf5->buf_len - PTR_DIFF(src,buf5->buffer)); *ar = (fstring *)Realloc(*ar, sizeof(fstring)*(n+2)); fstrcpy((*ar)[n], f); + n++; } fstrcpy((*ar)[n], ""); -- cgit