From 1bac2f80fc445fb451b28e7f74266e6fbb069764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Fri, 6 May 2005 19:18:46 +0000 Subject: [PATCH] Sync to Wine-20050419: Peter Berg Larsen - Janitorial: Get rid of strncpy/strncpyW. svn path=/trunk/; revision=15057 --- reactos/subsys/system/msiexec/msiexec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++ = '"';