Bugzilla – Attachment #101: Fixes handling of multiple comma-separated arguments for -W for bug #168
char *curr_ptr;
char *equals;
static char tmpLine[65536];
char *s;
/* we've reached the end */
if ((start == NULL) &&
(*tok_ptr == '\0'))
return(0);
s = NULL;
/* XXX: may truncate input */
if (start != NULL)
strcpy(tmpLine, start);
{
strncpy(tmpLine, start, sizeof(tmpLine));
tmpLine[sizeof(tmpLine) - 1] = '\0';
s = tmpLine;
}
curr_ptr = smart_strtok(tmpLine,",",&tok_ptr,FALSE);
curr_ptr = smart_strtok(s,",",&tok_ptr,FALSE);
if ((curr_ptr == NULL))