diff options
author | Gerald Carter <jerry@samba.org> | 2004-11-12 22:15:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:53:15 -0500 |
commit | 5c27f5fbc324524fd595645b9503b9d11cac9e99 (patch) | |
tree | e39a51e2ebafb371ea3d4c17da3afb0717b1b52c /source3/printing | |
parent | 9e9ef914acebd7291e0f4cfd2e0b6447d2e0e5bb (diff) | |
download | samba-5c27f5fbc324524fd595645b9503b9d11cac9e99.tar.gz samba-5c27f5fbc324524fd595645b9503b9d11cac9e99.tar.bz2 samba-5c27f5fbc324524fd595645b9503b9d11cac9e99.zip |
r3710: fix another safe_strcpy() warning SPAM with the printer drivcename
(This used to be commit 5eac16464dfe58ec2c725888993f313fdb609f9b)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index dd87b51946..6ab8b76f14 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -2184,7 +2184,7 @@ NT_DEVICEMODE *construct_nt_devicemode(const fstring default_devicename) ZERO_STRUCTP(nt_devmode); - safe_strcpy(adevice, default_devicename, sizeof(adevice)-1); + slprintf(adevice, sizeof(adevice), "%s", default_devicename); fstrcpy(nt_devmode->devicename, adevice); fstrcpy(nt_devmode->formname, "Letter"); |