Sync to Wine-20050419: Peter Berg Larsen pebl@math.ku.dk - Janitorial: Get rid of strncpy/strncpyW. Modified: trunk/reactos/subsys/system/msiexec/msiexec.c _____
Modified: trunk/reactos/subsys/system/msiexec/msiexec.c --- trunk/reactos/subsys/system/msiexec/msiexec.c 2005-05-06 19:16:10 UTC (rev 15056) +++ trunk/reactos/subsys/system/msiexec/msiexec.c 2005-05-06 19:18:46 UTC (rev 15057) @@ -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++ = '"';