diff options
author | bde <bde@FreeBSD.org> | 2004-03-11 10:12:05 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2004-03-11 10:12:05 +0000 |
commit | 3c804431a011cfce68ff263668813a05a84c9bd8 (patch) | |
tree | adba21979fac0c8e538ad31f8e00e63b879f4516 /usr.bin/msgs | |
parent | c4ea3a2d247b92f795d2d410840c669ab6a56570 (diff) | |
download | FreeBSD-src-3c804431a011cfce68ff263668813a05a84c9bd8.zip FreeBSD-src-3c804431a011cfce68ff263668813a05a84c9bd8.tar.gz |
Fixed misspellings of '\0' as NULL.
Diffstat (limited to 'usr.bin/msgs')
-rw-r--r-- | usr.bin/msgs/msgs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/msgs/msgs.c b/usr.bin/msgs/msgs.c index 31dd9d6..c56c3aa 100644 --- a/usr.bin/msgs/msgs.c +++ b/usr.bin/msgs/msgs.c @@ -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 { |