diff options
author | scf <scf@FreeBSD.org> | 2008-06-08 19:35:47 +0000 |
---|---|---|
committer | scf <scf@FreeBSD.org> | 2008-06-08 19:35:47 +0000 |
commit | c25b436504a13ccd91906a686e6cdc31ef0337a7 (patch) | |
tree | 9c61971912e9c351c721f5a5fe2032af78785297 /games/morse/morse.c | |
parent | c482e7889a7c0b7141fd4615beaa7d30f09a1d1f (diff) | |
download | FreeBSD-src-c25b436504a13ccd91906a686e6cdc31ef0337a7.zip FreeBSD-src-c25b436504a13ccd91906a686e6cdc31ef0337a7.tar.gz |
Fixed the output grammar to properly speak non-terminal dits.
Updated Lyndon Nerenberg's radio callsign and E-mail address.
PR: bin/7868
Submitted by: Lyndon Nerenberg <lyndon@orthanc.ca>
MFC after: 1 week
Diffstat (limited to 'games/morse/morse.c')
-rw-r--r-- | games/morse/morse.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/games/morse/morse.c b/games/morse/morse.c index 87f97dc..7663402 100644 --- a/games/morse/morse.c +++ b/games/morse/morse.c @@ -32,8 +32,8 @@ */ /* - * Taught to send *real* morse by Lyndon Nerenberg (VE7TCP/VE6BBM) - * <lyndon@orthanc.com> + * Taught to send *real* morse by Lyndon Nerenberg (VE6BBM) + * <lyndon@orthanc.ca> */ #ifndef lint @@ -483,7 +483,8 @@ show(const char *s) printf(" %s\n", s); } else { for (; *s; ++s) - printf(" %s", *s == '.' ? "dit" : "dah"); + printf(" %s", *s == '.' ? *(s + 1) == '\0' ? "dit" : + "di" : "dah"); printf("\n"); } } |