From: Shantonu Sen Date: Sun, 16 Apr 2000 13:28:12 +0000 (+0000) Subject: Changed some string terminations from NULL to \0. X-Git-Tag: nmh-1_0~35 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=b28e871ba874a53257b37eed94adfc365ed6ebf2;p=mmh Changed some string terminations from NULL to \0. --- diff --git a/uip/popsbr.c b/uip/popsbr.c index bfc39ea..6f2b35a 100644 --- a/uip/popsbr.c +++ b/uip/popsbr.c @@ -89,7 +89,7 @@ pop_auth (char *user, char *pass) return NULL; } - *++lp = NULL; + *(++lp) = '\0'; snprintf (buffer, sizeof(buffer), "%s%s", cp, pass); MD5Init (&mdContext); @@ -110,7 +110,7 @@ pop_auth (char *user, char *pass) cp += 2; buflen -= 2; } - *cp = NULL; + *cp = '\0'; return buffer; } @@ -139,8 +139,9 @@ pop_init (char *host, char *user, char *pass, int snoop, int rpop, int kpop) } } else { # endif /* KPOP */ - if ((fd1 = client (host, "tcp", POPSERVICE, rpop, response, sizeof(response))) == NOTOK) + if ((fd1 = client (host, "tcp", POPSERVICE, rpop, response, sizeof(response))) == NOTOK) { return NOTOK; + } # ifdef KPOP } # endif /* KPOP */