From: Theodore Tso Date: Thu, 3 Nov 1994 02:09:05 +0000 (+0000) Subject: NULL should not be used as a character assignment value. Use '\0' X-Git-Tag: krb5-1.0-beta5~1031 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9917671cc6bb8d13aaa8cae6d8d5d96b438453e5;p=krb5.git NULL should not be used as a character assignment value. Use '\0' instead. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4617 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/mailquery/ChangeLog b/src/appl/mailquery/ChangeLog index 042619773..846b52b6a 100644 --- a/src/appl/mailquery/ChangeLog +++ b/src/appl/mailquery/ChangeLog @@ -1,3 +1,8 @@ +Wed Nov 2 21:08:04 1994 Theodore Y. Ts'o (tytso@dcl) + + * poplib.c (getline, multiline): NULL should not be used as a + character assignment value. Use '\0' instead. + Mon Oct 3 19:17:31 1994 Theodore Y. Ts'o (tytso@dcl) * Makefile.in: Use $(srcdir) to find manual page for make install. diff --git a/src/appl/mailquery/poplib.c b/src/appl/mailquery/poplib.c index e64f7aae3..3aeb89cac 100644 --- a/src/appl/mailquery/poplib.c +++ b/src/appl/mailquery/poplib.c @@ -376,9 +376,9 @@ FILE *f; return (DONE); } - *p = NULL; - if (*--p == '\n') *p = NULL; - if (*--p == '\r') *p = NULL; + *p = '\0'; + if (*--p == '\n') *p = '\0'; + if (*--p == '\r') *p = '\0'; return(OK); } @@ -389,7 +389,7 @@ FILE *f; { if (getline(buf, n, f) != OK) return (NOTOK); if (*buf == '.') { - if (*(buf+1) == NULL) { + if (*(buf+1) == '\0') { return (DONE); } else { strcpy(buf, buf+1);