mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
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:
@@ -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++ = '"';
|
||||
|
||||
Reference in New Issue
Block a user