Fixed misspellings of '\0' as NULL.

This commit is contained in:
Bruce Evans 2004-03-11 10:12:05 +00:00
parent 754df37025
commit 263bf898e0

View File

@ -778,7 +778,7 @@ ask(const char *prompt)
for (n=0; in[n] > ' '; n++) { /* sizeof fname? */
fname[n] = in[n];
}
fname[n] = NULL;
fname[n] = '\0';
}
else
strcpy(fname, "Messages");
@ -828,7 +828,7 @@ gfrsub(FILE *infile)
seensubj = seenfrom = NO;
local = YES;
subj[0] = from[0] = date[0] = NULL;
subj[0] = from[0] = date[0] = '\0';
/*
* Is this a normal message?
@ -851,12 +851,12 @@ gfrsub(FILE *infile)
*ptr++ = *in++;
}
}
*ptr = NULL;
*ptr = '\0';
if (*(in = nxtfld(in)))
strncpy(date, in, sizeof date);
else {
date[0] = '\n';
date[1] = NULL;
date[1] = '\0';
}
}
else {