summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_spoolss.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-06-05 14:06:13 +0000
committerAndrew Tridgell <tridge@samba.org>2000-06-05 14:06:13 +0000
commitf87246df627f0d940b45f65f812c0c77a2dfa355 (patch)
tree93cf86baf0dd1effa811caa91b183ad95cfd6c21 /source3/rpc_parse/parse_spoolss.c
parent2db93dcc0f04e17c43b1270a62339982e46a7ddd (diff)
downloadsamba-f87246df627f0d940b45f65f812c0c77a2dfa355.tar.gz
samba-f87246df627f0d940b45f65f812c0c77a2dfa355.tar.bz2
samba-f87246df627f0d940b45f65f812c0c77a2dfa355.zip
simple increment bug in uniarray_2_dosarray
(This used to be commit 6506e6f47085beeaa6588a361a220ab21fc32aa6)
Diffstat (limited to 'source3/rpc_parse/parse_spoolss.c')
-rw-r--r--source3/rpc_parse/parse_spoolss.c1
1 files changed, 1 insertions, 0 deletions
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], "");