Commit d4843060 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(main): Initialize progname variable before using it.

Quote `username' in From_ header.
parent b48a16d2
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment