summaryrefslogtreecommitdiffstats
path: root/source
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
commitc9613214a5797adbb62a953bd5e28cf9fe2692ee (patch)
tree941d73614a1cb757a9fd8e716febca4a6c7285be /source
parentb94838aff1a009f8d8c2c3efd48756a5b8f3f989 (diff)
downloadsamba-c9613214a5797adbb62a953bd5e28cf9fe2692ee.tar.gz
samba-c9613214a5797adbb62a953bd5e28cf9fe2692ee.tar.xz
samba-c9613214a5797adbb62a953bd5e28cf9fe2692ee.zip
r3707: 2028: avoid false error messages when copying a long printer name to the device mode
Diffstat (limited to 'source')
-rw-r--r--source/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c
index a69433df37f..dd87b519462 100644
--- a/source/printing/nt_printing.c
+++ b/source/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);
}