diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/appl/mailquery/ChangeLog | 5 | ||||
| -rw-r--r-- | src/appl/mailquery/poplib.c | 8 |
2 files changed, 9 insertions, 4 deletions
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); |
