mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
s3-spoolss: fix fstrings in convert_devicemode() function.
Guenther
This commit is contained in:
parent
6aef5e591f
commit
753b9c6d56
@ -1484,8 +1484,11 @@ bool convert_devicemode(const char *printername,
|
||||
return false;
|
||||
}
|
||||
|
||||
rpcstr_push(nt_devmode->devicename, devmode->devicename, 31, 0);
|
||||
rpcstr_push(nt_devmode->formname, devmode->formname, 31, 0);
|
||||
fstrcpy(nt_devmode->devicename, devmode->devicename);
|
||||
fstrcpy(nt_devmode->formname, devmode->formname);
|
||||
|
||||
nt_devmode->devicename[31] = '\0';
|
||||
nt_devmode->formname[31] = '\0';
|
||||
|
||||
nt_devmode->specversion = devmode->specversion;
|
||||
nt_devmode->driverversion = devmode->driverversion;
|
||||
|
Loading…
Reference in New Issue
Block a user