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

(main): Avoid crash if argc is 1.

parent 8d118843
......@@ -50,7 +50,7 @@ main (argc, argv)
(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 <babylmailbox >unixmailbox\n", argv[0]);
exit (0);
......
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