[dlls/msvcrt/dir.c] Strncpy eliminaion. Real.
Peter Berg Larsen
pebl at math.ku.dk
Sun Mar 27 13:08:44 CST 2005
Is there something special going on here, or why was memcpy use
to begin with?
Changelog:
replace strncpy with memcpy.
Index: dlls/msvcrt/dir.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/dir.c,v
retrieving revision 1.31
diff -u -r1.31 dir.c
--- dlls/msvcrt/dir.c 18 Feb 2005 12:51:00 -0000 1.31
+++ dlls/msvcrt/dir.c 26 Mar 2005 09:40:53 -0000
@@ -1233,7 +1233,7 @@
msvcrt_set_errno(ERROR_FILE_NOT_FOUND);
return;
}
- strncpy(curPath, penv, end - penv);
+ memcpy(curPath, penv, end - penv);
if (curPath[end - penv] != '/' || curPath[end - penv] != '\\')
{
curPath[end - penv] = '\\';
More information about the wine-patches
mailing list