diff options
| author | Richard M. Stallman | 1996-03-20 23:42:05 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-03-20 23:42:05 +0000 |
| commit | d48430602f2f23c5f9988dcdd2078aec4fad7789 (patch) | |
| tree | 05e4b52703133b850139c8cd1a894c95f0b8c1a8 /lib-src | |
| parent | b48a16d28d875ae79c5d6aeb8a56aadb70d0c4a7 (diff) | |
| download | emacs-d48430602f2f23c5f9988dcdd2078aec4fad7789.tar.gz emacs-d48430602f2f23c5f9988dcdd2078aec4fad7789.zip | |
(main): Initialize progname variable before using it.
Quote `username' in From_ header.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/b2m.c | 5 |
1 files 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) | |||
| 92 | (stdout)->_flag &= ~_IOTEXT; | 92 | (stdout)->_flag &= ~_IOTEXT; |
| 93 | (stdin)->_flag &= ~_IOTEXT; | 93 | (stdin)->_flag &= ~_IOTEXT; |
| 94 | #endif | 94 | #endif |
| 95 | progname = argv[0]; | ||
| 96 | |||
| 95 | if (argc != 1) | 97 | if (argc != 1) |
| 96 | { | 98 | { |
| 97 | fprintf (stderr, "Usage: %s <babylmailbox >unixmailbox\n", progname); | 99 | fprintf (stderr, "Usage: %s <babylmailbox >unixmailbox\n", progname); |
| 98 | exit (GOOD); | 100 | exit (GOOD); |
| 99 | } | 101 | } |
| 100 | labels_saved = printing = header = FALSE; | 102 | labels_saved = printing = header = FALSE; |
| 101 | progname = argv[0]; | ||
| 102 | ltoday = time (0); | 103 | ltoday = time (0); |
| 103 | today = ctime (<oday); | 104 | today = ctime (<oday); |
| 104 | data.size = 200; | 105 | data.size = 200; |
| @@ -113,7 +114,7 @@ main (argc, argv) | |||
| 113 | if (streq (data.buffer, "*** EOOH ***") && !printing) | 114 | if (streq (data.buffer, "*** EOOH ***") && !printing) |
| 114 | { | 115 | { |
| 115 | printing = header = TRUE; | 116 | printing = header = TRUE; |
| 116 | printf ("From Babyl to mail by %s %s", progname, today); | 117 | printf ("From \"Babyl to mail by %s\" %s", progname, today); |
| 117 | continue; | 118 | continue; |
| 118 | } | 119 | } |
| 119 | 120 | ||