Commit 5d13f393 authored by Jim Blandy's avatar Jim Blandy
Browse files

* b2m.c (main): Don't exit upon reading a blank line.

parent 3647c171
...@@ -36,8 +36,9 @@ int header = FALSE, printing; ...@@ -36,8 +36,9 @@ int header = FALSE, printing;
long ltoday; long ltoday;
char from[256], labels[256], data[256], *p, *today; char from[256], labels[256], data[256], *p, *today;
main(argc, argv) main (argc, argv)
char **argv; int argc;
char **argv;
{ {
ltoday = time(0); ltoday = time(0);
today = ctime(&ltoday); today = ctime(&ltoday);
...@@ -54,8 +55,13 @@ char **argv; ...@@ -54,8 +55,13 @@ char **argv;
puts(data); puts(data);
while (gets(data)) { while (gets(data)) {
#if 0
/* What was this for? Does somebody have something against blank
lines? */
if (!strcmp(data, "")) if (!strcmp(data, ""))
exit(0); exit(0);
#endif
if (!strcmp(data, "*** EOOH ***") && !printing) { if (!strcmp(data, "*** EOOH ***") && !printing) {
printing = header = TRUE; printing = header = TRUE;
......
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