hallucinate an extra empty argument word at the end of a line if the
line ended in more than one whitespace character.
git-svn-id: svn://svn.tartarus.org/sgt/putty@9613
cda61777-01e9-0310-a592-
d414129be87e
* >this has "quotes" in<
* >and"this"<
*/
* >this has "quotes" in<
* >and"this"<
*/
/* skip whitespace */
while (*p && (*p == ' ' || *p == '\t'))
p++;
/* skip whitespace */
while (*p && (*p == ' ' || *p == '\t'))
p++;
+ /* terminate loop */
+ if (!*p)
+ break;
/* mark start of word */
q = r = p; /* q sits at start, r writes word */
quoting = 0;
/* mark start of word */
q = r = p; /* q sits at start, r writes word */
quoting = 0;