Commit 4fc3aa9c 4fc3aa9c3ca61073536626a47841b2062de0fade by Sergey Poznyakoff

(argcv_get_n): Prevent coredump if command='"'

1 parent 36e44486
......@@ -348,8 +348,11 @@ argcv_get_n (const char *command, int len, const char *delim, const char *cmnt,
if ((command[start] == '"' || command[end] == '\'')
&& command[end] == command[start])
{
start++;
end--;
if (start < end)
{
start++;
end--;
}
unquote = 0;
}
else
......