nmh-workers
[Top] [All Lists]

[Nmh-workers] [PATCH] Terminate last arg in proxy argv n popsbr.c:parse_proxy .

2014-12-05 23:08:59
This bug seems to have existed since this code was born.  I guess others have
been lucky?
---
 uip/popsbr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/uip/popsbr.c b/uip/popsbr.c
index 15d03f0..ccc76c7 100644
--- a/uip/popsbr.c
+++ b/uip/popsbr.c
@@ -467,6 +467,7 @@ parse_proxy(char *proxy, char *host)
        } else if (!isspace(*cur))
            *c++ = *cur;
     }
+    *c = '\0';
     *++p = NULL;
     return pargv;
 }
-- 
2.1.0


_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>