diff options
| author | Kevin Lo <kevlo@FreeBSD.org> | 2012-01-13 06:51:15 +0000 |
|---|---|---|
| committer | Kevin Lo <kevlo@FreeBSD.org> | 2012-01-13 06:51:15 +0000 |
| commit | a3a2bf4b67301263d37db3e0702845dbc671f439 (patch) | |
| tree | 2f39c41e193505df2d97cf331a8647c9f25c53c9 /usr.bin/mail | |
| parent | ab80dcdb1c18421a1f0c62018aa4d223110a9a0c (diff) | |
Notes
Diffstat (limited to 'usr.bin/mail')
| -rw-r--r-- | usr.bin/mail/edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/mail/edit.c b/usr.bin/mail/edit.c index d1ff37fd794f8..ad8aa535dec77 100644 --- a/usr.bin/mail/edit.c +++ b/usr.bin/mail/edit.c @@ -89,7 +89,7 @@ edit1(int *msgvec, int type) char *p; printf("Edit message %d [ynq]? ", msgvec[i]); - if (fgets(buf, sizeof(buf), stdin) == 0) + if (fgets(buf, sizeof(buf), stdin) == NULL) break; for (p = buf; *p == ' ' || *p == '\t'; p++) ; |
