From d48430602f2f23c5f9988dcdd2078aec4fad7789 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 20 Mar 1996 23:42:05 +0000 Subject: [PATCH] (main): Initialize progname variable before using it. Quote `username' in From_ header. --- lib-src/b2m.c | 5 +++-- 1 file 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 unixmailbox\n", progname); exit (GOOD); } labels_saved = printing = header = FALSE; - progname = argv[0]; ltoday = time (0); today = ctime (<oday); 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; } -- 2.39.2