projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03a1e1b
)
Sync to Wine-20050419:
author
Gé van Geldorp
<ge@gse.nl>
Fri, 6 May 2005 19:18:46 +0000
(19:18 +0000)
committer
Gé 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
patch
|
blob
|
history
diff --git
a/reactos/subsys/system/msiexec/msiexec.c
b/reactos/subsys/system/msiexec/msiexec.c
index
fbd51e8
..
cecb7a7
100644
(file)
--- 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++ = '"';