From c9613214a5797adbb62a953bd5e28cf9fe2692ee Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 12 Nov 2004 17:23:01 +0000 Subject: [PATCH] r3707: 2028: avoid false error messages when copying a long printer name to the device mode --- source/printing/nt_printing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.47.3