svn commit: samba r3710 - in branches/SAMBA_3_0/source/printing: .

jerry at samba.org jerry at samba.org
Fri Nov 12 22:15:55 GMT 2004


Author: jerry
Date: 2004-11-12 22:15:55 +0000 (Fri, 12 Nov 2004)
New Revision: 3710

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3710

Log:
fix another safe_strcpy() warning SPAM with the printer drivcename
Modified:
   branches/SAMBA_3_0/source/printing/nt_printing.c


Changeset:
Modified: branches/SAMBA_3_0/source/printing/nt_printing.c
===================================================================
--- branches/SAMBA_3_0/source/printing/nt_printing.c	2004-11-12 22:05:27 UTC (rev 3709)
+++ branches/SAMBA_3_0/source/printing/nt_printing.c	2004-11-12 22:15:55 UTC (rev 3710)
@@ -2184,7 +2184,7 @@
 
 	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");



More information about the samba-cvs mailing list