Index: printing/nt_printing.c =================================================================== --- printing/nt_printing.c (revision 3706) +++ printing/nt_printing.c (working copy) @@ -3428,7 +3428,7 @@ 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); }