changeset 14850:13d38dfedb51

(main): Initialize progname variable before using it. Quote `username' in From_ header.
author Richard M. Stallman <rms@gnu.org>
date Wed, 20 Mar 1996 23:42:05 +0000
parents e36c046e28b1
children ee6ea46b8e72
files lib-src/b2m.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/b2m.c	Wed Mar 20 16:18:23 1996 +0000
+++ b/lib-src/b2m.c	Wed Mar 20 23:42:05 1996 +0000
@@ -92,13 +92,14 @@
   (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 @@
       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;
 	}