]> diplodocus.org Git - nmh/commitdiff
Terminate last arg in proxy argv n popsbr.c:parse_proxy().
authorEric Gillespie <epg@pretzelnet.org>
Sat, 6 Dec 2014 05:08:40 +0000 (21:08 -0800)
committerDavid Levine <levinedl@acm.org>
Sat, 6 Dec 2014 15:22:22 +0000 (09:22 -0600)
This bug seems to have existed since this code was born.  I guess
others have been lucky?

uip/popsbr.c

index 15d03f0b3b4b1b79015a20d8179775c1fbab4891..ccc76c7c40ead4ba3eb72196f1e6314889928fb6 100644 (file)
@@ -467,6 +467,7 @@ parse_proxy(char *proxy, char *host)
        } else if (!isspace(*cur))
            *c++ = *cur;
     }
        } else if (!isspace(*cur))
            *c++ = *cur;
     }
+    *c = '\0';
     *++p = NULL;
     return pargv;
 }
     *++p = NULL;
     return pargv;
 }