1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r3707: 2028: avoid false error messages when copying a long printer name to the device mode

This commit is contained in:
Gerald Carter 2004-11-12 17:23:01 +00:00 committed by Gerald (Jerry) Carter
parent b94838aff1
commit c9613214a5

View File

@ -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);
}