diff options
author | mike <mike@FreeBSD.org> | 2003-02-06 22:39:44 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2003-02-06 22:39:44 +0000 |
commit | e7fb1825df78e0fd2099bce652aff08399919cd7 (patch) | |
tree | 4afabca1b4ed95b9818cf783b5b918b33c9b6d38 /usr.bin/msgs | |
parent | 63f412ef7481bcc52f77c4d1f98bf8441964b117 (diff) | |
download | FreeBSD-src-e7fb1825df78e0fd2099bce652aff08399919cd7.zip FreeBSD-src-e7fb1825df78e0fd2099bce652aff08399919cd7.tar.gz |
Fix singular/plural confusion in a printf.
PR: 47953
Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
MFC after: 3 days
Diffstat (limited to 'usr.bin/msgs')
-rw-r--r-- | usr.bin/msgs/msgs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/msgs/msgs.c b/usr.bin/msgs/msgs.c index 044fccc..31dd9d6 100644 --- a/usr.bin/msgs/msgs.c +++ b/usr.bin/msgs/msgs.c @@ -516,7 +516,8 @@ main(int argc, char *argv[]) lct = linecnt(newmsg); if (lct) - printf("(%d%slines) ", lct, seensubj? " " : " more "); + printf("(%d%sline%s) ", lct, seensubj? " " : " more ", + (lct == 1) ? "" : "s"); if (hdrs) { printf("\n-----\n"); |