Author: pschweitzer
Date: Wed Sep 21 17:13:28 2011
New Revision: 53791
URL:
http://svn.reactos.org/svn/reactos?rev=53791&view=rev
Log:
[KERNEL32]
Fix buffer overrun
Modified:
trunk/reactos/dll/win32/kernel32/client/file/file.c
Modified: trunk/reactos/dll/win32/kernel32/client/file/file.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/file.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/file.c [iso-8859-1] Wed Sep 21 17:13:28
2011
@@ -1370,7 +1370,7 @@
} while (*Let != 0);
/* Append extension & UNICODE_NULL */
- memmove(TempFileName, Ext, sizeof(Ext) + sizeof(WCHAR));
+ memmove(TempFileName, Ext, sizeof(Ext));
/* If user provided its ID, just return */
if (uUnique)