Sync to Wine-20050419:
authorGé van Geldorp <ge@gse.nl>
Fri, 6 May 2005 19:18:46 +0000 (19:18 +0000)
committerGé van Geldorp <ge@gse.nl>
Fri, 6 May 2005 19:18:46 +0000 (19:18 +0000)
Peter Berg Larsen <pebl@math.ku.dk>
- Janitorial: Get rid of strncpy/strncpyW.

svn path=/trunk/; revision=15057

reactos/subsys/system/msiexec/msiexec.c

index fbd51e8..cecb7a7 100644 (file)
@@ -145,7 +145,7 @@ static LPWSTR build_properties(struct string_list *property_list)
                        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 @@ static LPWSTR build_properties(struct string_list *property_list)
                if(needs_quote)
                        *p++ = '"';
                len = lstrlenW(value);
-               strncpyW(p, value, len);
+               memcpy(p, value, len * sizeof(WCHAR));
                p += len;
                if(needs_quote)
                        *p++ = '"';