summaryrefslogtreecommitdiff
path: root/lib-src
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
commita5564776975368fe02df015b2244036aba7baeef (patch)
treebe84c85fb93dd4b0a938ac82de91c5272889d310 /lib-src
parenta63e2e4d744ec16938773be85c49089733315cfa (diff)
downloademacs-a5564776975368fe02df015b2244036aba7baeef.tar.gz
(main): Initialize progname variable before using it.
Quote `username' in From_ header.
Diffstat (limited to 'lib-src')
-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;
}