summaryrefslogtreecommitdiff
path: root/lib-src/b2m.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-03-20 23:42:05 +0000
committerRichard M. Stallman <rms@gnu.org>1996-03-20 23:42:05 +0000
commitd48430602f2f23c5f9988dcdd2078aec4fad7789 (patch)
tree05e4b52703133b850139c8cd1a894c95f0b8c1a8 /lib-src/b2m.c
parentb48a16d28d875ae79c5d6aeb8a56aadb70d0c4a7 (diff)
downloademacs-d48430602f2f23c5f9988dcdd2078aec4fad7789.tar.gz
(main): Initialize progname variable before using it.
Quote `username' in From_ header.
Diffstat (limited to 'lib-src/b2m.c')
-rw-r--r--lib-src/b2m.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib-src/b2m.c b/lib-src/b2m.c
index d0e41a6ae93..9da7a91b60f 100644
--- a/lib-src/b2m.c
+++ b/lib-src/b2m.c
@@ -92,13 +92,14 @@ main (argc, argv)
(stdout)->_flag &= ~_IOTEXT;
(stdin)->_flag &= ~_IOTEXT;
#endif
+ progname = argv[0];
+
if (argc != 1)
{
fprintf (stderr, "Usage: %s <babylmailbox >unixmailbox\n", progname);
exit (GOOD);
}
labels_saved = printing = header = FALSE;
- progname = argv[0];
ltoday = time (0);
today = ctime (&ltoday);
data.size = 200;
@@ -113,7 +114,7 @@ main (argc, argv)
if (streq (data.buffer, "*** EOOH ***") && !printing)
{
printing = header = TRUE;
- printf ("From Babyl to mail by %s %s", progname, today);
+ printf ("From \"Babyl to mail by %s\" %s", progname, today);
continue;
}