[prigrams/msiexec/msiexec.c] Strncpy elimination.

Peter Berg Larsen pebl at math.ku.dk
Sun Mar 27 13:40:53 CST 2005


Changelog:
	Change strncpyW to memcpy.


Index: programs/msiexec/msiexec.c
===================================================================
RCS file: /home/wine/wine/programs/msiexec/msiexec.c,v
retrieving revision 1.25
diff -u -r1.25 msiexec.c
--- programs/msiexec/msiexec.c	21 Feb 2005 18:29:21 -0000	1.25
+++ programs/msiexec/msiexec.c	26 Mar 2005 09:41:50 -0000
@@ -145,7 +145,7 @@
 			continue;
 		len = value - list->str;
 		*p++ = ' ';
-		strncpyW(p, list->str, len);
+		memcpy(p, list->str, len * sizeof(WCHAR));
 		p += len;
 		*p++ = '=';

@@ -155,7 +155,7 @@
 		if(needs_quote)
 			*p++ = '"';
 		len = lstrlenW(value);
-		strncpyW(p, value, len);
+		memcpy(p, value, len * sizeof(WCHAR));
 		p += len;
 		if(needs_quote)
 			*p++ = '"';






More information about the wine-patches mailing list