cmd: Prevent overflow for long command string.

This commit is contained in:
Jason Edmeades 2012-11-19 22:34:09 +00:00 committed by Alexandre Julliard
parent c0ff587203
commit d71f5c9483
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ WCHAR *WCMD_parameter_with_delims (WCHAR *s, int n, WCHAR **start,
BOOL raw, BOOL wholecmdline, const WCHAR *delims)
{
int curParamNb = 0;
static WCHAR param[MAX_PATH];
static WCHAR param[MAXSTRING];
WCHAR *p = s, *begin;
if (start != NULL) *start = NULL;