mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Fixed crash on help command, due to a buffer overflow. Thanks to jim4
svn path=/trunk/; revision=1652
This commit is contained in:
parent
ea6cacb6ed
commit
c9a6908fb9
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: shell.c,v 1.3 2001/02/01 16:30:46 jean Exp $
|
||||
/* $Id: shell.c,v 1.4 2001/02/28 23:51:58 phreak Exp $
|
||||
*
|
||||
* PROJECT : ReactOS Operating System
|
||||
* DESCRIPTION: ReactOS' Native Shell
|
||||
|
@ -22,11 +22,11 @@ BOOL bCanExit = TRUE;
|
|||
void debug_printf(char* fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
char buffer[255];
|
||||
char buffer[512];
|
||||
DWORD nbChar;
|
||||
|
||||
va_start(args,fmt);
|
||||
vsprintf(buffer,fmt,args);
|
||||
_vsnprintf(buffer,512,fmt,args);
|
||||
va_end(args);
|
||||
WriteConsoleA(OutputHandle, buffer, strlen(buffer), &nbChar, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue