[1280] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5b4ple: appl/mailquery/poplib.c: NULL should be '\0'

daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Fri Mar 24 14:41:23 1995

From: "Jonathan I. Kamens" <jik@cam.ov.com>
Date: Fri, 24 Mar 1995 14:44:19 -0500
To: krb5-bugs@MIT.EDU

--- poplib.c	1995/03/24 19:43:03	1.1
+++ poplib.c	1995/03/24 19:44:15
@@ -376,9 +376,9 @@
 	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 @@
 {
     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);

home help back first fref pref prev next nref lref last post