# HG changeset patch # User Richard M. Stallman # Date 769201975 0 # Node ID 9b2c273b91af701c6109abf553914792ac7e9e4b # Parent 1f09079e18c493c28bb686139543e1f6f627dd25 (main): Avoid crash if argc is 1. diff -r 1f09079e18c4 -r 9b2c273b91af lib-src/b2m.c --- a/lib-src/b2m.c Tue May 17 09:48:53 1994 +0000 +++ b/lib-src/b2m.c Tue May 17 19:12:55 1994 +0000 @@ -50,7 +50,7 @@ (stdout)->_flag &= ~_IOTEXT; (stdin)->_flag &= ~_IOTEXT; #endif - if (strcmp (argv[1], "--help") == 0) + if (argc >= 2 && strcmp (argv[1], "--help") == 0) { fprintf (stderr, "Usage: %s unixmailbox\n", argv[0]); exit (0);