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

jerry at samba.org jerry at samba.org
Fri Nov 12 17:23:02 GMT 2004


Author: jerry
Date: 2004-11-12 17:23:01 +0000 (Fri, 12 Nov 2004)
New Revision: 3707

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

Log:
2028: avoid false error messages when copying a long printer name to the device mode
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 15:50:18 UTC (rev 3706)
+++ branches/SAMBA_3_0/source/printing/nt_printing.c	2004-11-12 17:23:01 UTC (rev 3707)
@@ -3428,7 +3428,7 @@
 		info.devmode = construct_nt_devicemode(printername);
 	}
 
-	safe_strcpy(adevice, info.printername, sizeof(adevice)-1);
+	slprintf( adevice, sizeof(adevice), "%s", info.printername );
 	if (info.devmode) {
 		fstrcpy(info.devmode->devicename, adevice);	
 	}



More information about the samba-cvs mailing list