summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-07-29 18:10:18 +0000
committerGerald Carter <jerry@samba.org>2002-07-29 18:10:18 +0000
commitd6a3fd8ad4f01b20eda7eff91cfb336b183c08ac (patch)
tree6716381601e451ccbda3473c679f863e944361e3
parent787cd2c1e9e9c873d4067d78fdb02b31894fff93 (diff)
downloadsamba-d6a3fd8ad4f01b20eda7eff91cfb336b183c08ac.tar.gz
samba-d6a3fd8ad4f01b20eda7eff91cfb336b183c08ac.tar.bz2
samba-d6a3fd8ad4f01b20eda7eff91cfb336b183c08ac.zip
passing -1 for the src length in rpcstr_pull results in only
converting the first character of the unicode string., See convert_string() for why. uniarray_2_dosarray() passes 0 for the src length now which works. (This used to be commit 0793612cca3bba55d5e5e2970308f95839f208b4)
-rw-r--r--source3/rpc_parse/parse_spoolss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c
index b10a5c4377..bc1691d26b 100644
--- a/source3/rpc_parse/parse_spoolss.c
+++ b/source3/rpc_parse/parse_spoolss.c
@@ -5183,7 +5183,7 @@ static BOOL uniarray_2_dosarray(BUFFER5 *buf5, fstring **ar)
*ar = NULL;
while (src < ((char *)buf5->buffer) + buf5->buf_len*2) {
- rpcstr_pull(f, src, sizeof(f)-1, -1, 0);
+ rpcstr_pull(f, src, sizeof(f)-1, 0, 0);
src = skip_unibuf(src, 2*buf5->buf_len - PTR_DIFF(src,buf5->buffer));
tar = (fstring *)Realloc(*ar, sizeof(fstring)*(n+2));
if (!tar)