summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2001-12-13 16:35:43 +0000
committerGerald Carter <jerry@samba.org>2001-12-13 16:35:43 +0000
commit4ad930ad5ea47e9f543fb55a844d1d74fb7912cc (patch)
treecd4ed0d5d1ba0d638887dc4654ddfa5ca32b676e /source3
parent9a83100c65255ad5bd2cfe461b7f1e79941f84e0 (diff)
downloadsamba-4ad930ad5ea47e9f543fb55a844d1d74fb7912cc.tar.gz
samba-4ad930ad5ea47e9f543fb55a844d1d74fb7912cc.tar.bz2
samba-4ad930ad5ea47e9f543fb55a844d1d74fb7912cc.zip
merge from appliance_head
(This used to be commit 423554fd71b3c9718fc3a21006da9ce6371fc845)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index dae3aa09c9..cd47f6a130 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -6912,6 +6912,10 @@ WERROR _spoolss_enumprinterkey(pipes_struct *p, SPOOL_Q_ENUMPRINTERKEY *q_u, SPO
enumkeys[i] = (uint16)(*ptr);
ptr++;
}
+
+ /* tag of with 2 '\0's */
+ enumkeys[i++] = '\0';
+ enumkeys[i] = '\0';
if (!make_spoolss_buffer5(p->mem_ctx, &r_u->keys, ENUMERATED_KEY_SIZE, enumkeys))
return WERR_BADFILE;