From 4ad930ad5ea47e9f543fb55a844d1d74fb7912cc Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 13 Dec 2001 16:35:43 +0000 Subject: merge from appliance_head (This used to be commit 423554fd71b3c9718fc3a21006da9ce6371fc845) --- source3/rpc_server/srv_spoolss_nt.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3') 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; -- cgit