summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-11-12 17:23:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:15 -0500
commitf3ea955b70eab3df09cb95eee9c5053d3c44e858 (patch)
tree164f548ba15adc8d952cd87e7e41afa64d0803d7
parentf9e87b9ba65f37bafa45eacb1a6c9b8c5483d46b (diff)
downloadsamba-f3ea955b70eab3df09cb95eee9c5053d3c44e858.tar.gz
samba-f3ea955b70eab3df09cb95eee9c5053d3c44e858.tar.bz2
samba-f3ea955b70eab3df09cb95eee9c5053d3c44e858.zip
r3707: 2028: avoid false error messages when copying a long printer name to the device mode
(This used to be commit c9613214a5797adbb62a953bd5e28cf9fe2692ee)
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index a69433df37..dd87b51946 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -3428,7 +3428,7 @@ static WERROR get_a_printer_2(NT_PRINTER_INFO_LEVEL_2 **info_ptr, const char *se
info.devmode = construct_nt_devicemode(printername);
}
- safe_strcpy(adevice, info.printername, sizeof(adevice)-1);
+ slprintf( adevice, sizeof(adevice), "%s", info.printername );
if (info.devmode) {
fstrcpy(info.devmode->devicename, adevice);
}