X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/337b4e616e8f53ba06285b1645e1df9918ed5c16..f345b9b480296b4b6a8469d6221752893c5d1420:/uip/popsbr.c diff --git a/uip/popsbr.c b/uip/popsbr.c index 2d194a67..ccc76c7c 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; } @@ -936,7 +937,9 @@ putline (char *s, FILE *iop) return NOTOK; } - fwrite(buf, buflen, 1, iop); + if (fwrite(buf, buflen, 1, iop) < 1) { + advise ("putline", "fwrite"); + } } #endif /* CYRUS_SASL */