Commit c4c8d1bb authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

fixed seqfault when entering operator parameters witch stdin

parent 015baedd
......@@ -1045,6 +1045,7 @@ operatorInputArg(const char *enter)
lreadline = 0;
while (1)
{
pos = 0;
while (pline[pos] == ' ' || pline[pos] == ',')
pos++;
......@@ -1061,7 +1062,7 @@ operatorInputArg(const char *enter)
while (pline[len] != ' ' && pline[len] != ',' && pline[len] != '\\' && len < linelen)
len++;
process.oargv[oargc] = (char *) Malloc(len + 1);
process.oargv.push_back((char*)Malloc(len + 1));
memcpy(process.oargv[oargc], pline, len);
process.oargv[oargc][len] = '\0';
oargc++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment