From 5c27f5fbc324524fd595645b9503b9d11cac9e99 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 12 Nov 2004 22:15:55 +0000 Subject: r3710: fix another safe_strcpy() warning SPAM with the printer drivcename (This used to be commit 5eac16464dfe58ec2c725888993f313fdb609f9b) --- source3/printing/nt_printing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit