diff options
| author | Theodore Tso <tytso@mit.edu> | 1994-11-03 02:09:05 +0000 |
|---|---|---|
| committer | Theodore Tso <tytso@mit.edu> | 1994-11-03 02:09:05 +0000 |
| commit | 9917671cc6bb8d13aaa8cae6d8d5d96b438453e5 (patch) | |
| tree | aac21ae67b09f73495b26bb6bf176136416c8e3a /src | |
| parent | 1259053c2382ec77c80b07385a1e59f751d54034 (diff) | |
| download | krb5-9917671cc6bb8d13aaa8cae6d8d5d96b438453e5.tar.gz krb5-9917671cc6bb8d13aaa8cae6d8d5d96b438453e5.tar.xz krb5-9917671cc6bb8d13aaa8cae6d8d5d96b438453e5.zip | |
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
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); |
