mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
prevent buffer overflow, LoadString accepts the size of the buffer in TCHARs, not in bytes!
svn path=/trunk/; revision=14996
This commit is contained in:
parent
e85ca23849
commit
74d7b0c5f4
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ INT cmd_mkdir (LPTSTR cmd, LPTSTR param)
|
|||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue