TODO: Added a todo for refactoring TOKEN::Match
This commit is contained in:
parent
7196b8a028
commit
202c613e70
|
@ -135,8 +135,9 @@ bool TOKEN::Match(const TOKEN *tok, const char pattern[], const char *varname1[]
|
||||||
while ( *p == ' ' )
|
while ( *p == ' ' )
|
||||||
p++;
|
p++;
|
||||||
|
|
||||||
// Extract token from pattern..
|
// Extract token from pattern..
|
||||||
char str[50];
|
// TODO: Refactor this so there can't be buffer overflows
|
||||||
|
char str[500];
|
||||||
char *s = str;
|
char *s = str;
|
||||||
while (*p && *p!=' ')
|
while (*p && *p!=' ')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue