diff options
author | Tim Potter <tpot@samba.org> | 2001-01-12 19:45:50 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-01-12 19:45:50 +0000 |
commit | ee49ddbd8ff7fd856ae9185a585dfc457c9e8cb5 (patch) | |
tree | 71f482d0dd425fb69457ca3595fd95dafa1c5a9d /source3 | |
parent | 44a9dc1ba80143669ffdf32fd063733c8142b10e (diff) | |
download | samba-ee49ddbd8ff7fd856ae9185a585dfc457c9e8cb5.tar.gz samba-ee49ddbd8ff7fd856ae9185a585dfc457c9e8cb5.tar.bz2 samba-ee49ddbd8ff7fd856ae9185a585dfc457c9e8cb5.zip |
Printer name unistr is null terminated in make_spoolss_q_open_printer_ex()
(This used to be commit a125eba0aac2bc6b37322a1e38e46eaac7e20d3a)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_parse/parse_spoolss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c index e3d9f896f5..a6f46285eb 100644 --- a/source3/rpc_parse/parse_spoolss.c +++ b/source3/rpc_parse/parse_spoolss.c @@ -703,7 +703,7 @@ BOOL make_spoolss_q_open_printer_ex(SPOOL_Q_OPEN_PRINTER_EX *q_u, { DEBUG(5,("make_spoolss_q_open_printer_ex\n")); q_u->printername_ptr = (printername!=NULL)?1:0; - init_unistr2(&q_u->printername, printername, strlen(printername)); + init_unistr2(&q_u->printername, printername, strlen(printername)+1); q_u->printer_default.datatype_ptr = 0; /* |