From: Richard M. Stallman Date: Wed, 20 Mar 1996 23:42:05 +0000 (+0000) Subject: (main): Initialize progname variable before using it. X-Git-Tag: emacs-19.34~1010 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d48430602f2f23c5f9988dcdd2078aec4fad7789;p=emacs.git (main): Initialize progname variable before using it. Quote `username' in From_ header. --- 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; }