summaryrefslogtreecommitdiffstats
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-11-30 18:10:59 +0100
committerGünther Deschner <gd@samba.org>2009-11-30 23:29:29 +0100
commit753b9c6d566fafee9724a84fbd91316767c1c7a2 (patch)
tree5735eb5fdfd248eca109c2f07cc8d3bd065e548a /source3/rpc_server
parent6aef5e591f3fa1ceeedb22273d2fe04298b6e3fb (diff)
downloadsamba-753b9c6d566fafee9724a84fbd91316767c1c7a2.tar.gz
samba-753b9c6d566fafee9724a84fbd91316767c1c7a2.tar.xz
samba-753b9c6d566fafee9724a84fbd91316767c1c7a2.zip
s3-spoolss: fix fstrings in convert_devicemode() function.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 8d7973d13e5..d74204800af 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -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;