diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/nt_printing.c | 2 |
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); } |