Sync to Wine-20050419:

Peter Berg Larsen <[email protected]>
- Janitorial: Get rid of strncpy/strncpyW.

svn path=/trunk/; revision=15057
This commit is contained in:
Gé van Geldorp
2005-05-06 19:18:46 +00:00
parent 03a1e1b191
commit 1bac2f80fc
+2 -2
View 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++ = '"';