prevent buffer overflow, LoadString accepts the size of the buffer in
TCHARs, not in bytes!
Modified: trunk/reactos/subsys/system/cmd/internal.c
_____
Modified: trunk/reactos/subsys/system/cmd/internal.c
--- trunk/reactos/subsys/system/cmd/internal.c 2005-05-05 12:21:43 UTC
(rev 14995)
+++ trunk/reactos/subsys/system/cmd/internal.c 2005-05-05 12:25:40 UTC
(rev 14996)
@@ -316,7 +316,7 @@
if (!dir)
{
- LoadString( GetModuleHandle(NULL),
STRING_ERROR_REQ_PARAM_MISSING, (LPTSTR) szMsg,sizeof(szMsg));
+ LoadString( GetModuleHandle(NULL),
STRING_ERROR_REQ_PARAM_MISSING, szMsg, RC_STRING_MAX_SIZE);
ConErrPrintf (szMsg);
return 1;
}