X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/89edf0508f6df4700d0e28cace04e44fec4ff735..8e5bcb24340597d842ff02eadd73bd9f775ea80a:/uip/popsbr.c diff --git a/uip/popsbr.c b/uip/popsbr.c index a9319054..d79c8b3d 100644 --- a/uip/popsbr.c +++ b/uip/popsbr.c @@ -108,7 +108,7 @@ parse_proxy(char *proxy, char *host) /* put together list of arguments */ p = pargv = mh_xmalloc(pargc * sizeof(char *)); - c = *pargv = mh_xmalloc(plen * sizeof(char)); + c = *pargv = mh_xmalloc(plen); for (cur = pro; *cur; cur++) { if (isspace(*cur) && cur[1] && !isspace(cur[1])) { *c++ = '\0'; @@ -182,7 +182,7 @@ pop_init (char *host, char *port, char *user, char *proxy, int snoop, close(1); free(*argv); free(argv); - exit(10); + exit(1); } /* okay in the parent we do some stuff */ @@ -594,7 +594,7 @@ vcommand (const char *fmt, va_list ap) case OK: if (poprint) fprintf (stderr, "<--- %s\n", response); - return (*response == '+' ? OK : NOTOK); + return *response == '+' ? OK : NOTOK; case NOTOK: case DONE: