From: Gé van Geldorp Date: Fri, 6 May 2005 19:18:46 +0000 (+0000) Subject: Sync to Wine-20050419: X-Git-Tag: backups/new_headers@15539~18^2~29 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=1bac2f80fc445fb451b28e7f74266e6fbb069764 Sync to Wine-20050419: Peter Berg Larsen - Janitorial: Get rid of strncpy/strncpyW. svn path=/trunk/; revision=15057 --- diff --git a/reactos/subsys/system/msiexec/msiexec.c b/reactos/subsys/system/msiexec/msiexec.c index fbd51e8f088..cecb7a78ed2 100644 --- a/reactos/subsys/system/msiexec/msiexec.c +++ b/reactos/subsys/system/msiexec/msiexec.c @@ -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++ = '"';