NULL should not be used as a character assignment value. Use '\0'
authorTheodore Tso <tytso@mit.edu>
Thu, 3 Nov 1994 02:09:05 +0000 (02:09 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 3 Nov 1994 02:09:05 +0000 (02:09 +0000)
instead.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4617 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/mailquery/ChangeLog
src/appl/mailquery/poplib.c

index 042619773e7de324ddf2bf4eca60b469b2cc98d6..846b52b6a928ac0a17f096dde5b5b7e9231f6369 100644 (file)
@@ -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.
index e64f7aae3425376b7e9398ed254159e1a5fe7f21..3aeb89cac34c6149495ccb115139c1594899f706 100644 (file)
@@ -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);