# HG changeset patch # User Richard M. Stallman # Date 827365325 0 # Node ID 13d38dfedb51c35fa7bce93526110fc2c8d376ab # Parent e36c046e28b1fede38321a5235b39aaf0dba4481 (main): Initialize progname variable before using it. Quote `username' in From_ header. diff -r e36c046e28b1 -r 13d38dfedb51 lib-src/b2m.c --- 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 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 @@ 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; }