diff options
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 { |