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:
parent
b94838aff1
commit
c9613214a5
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user