--- fcrackzip/main.c 2008/08/04 07:09:51 1.1 +++ fcrackzip/main.c 2008/10/01 04:29:43 1.2 @@ -375,6 +375,12 @@ break; case 'p': + if (strlen (optarg) > MAX_PW) + { + fprintf (stderr, "'%s' is too long: passwords longer than %d characters not supported\n", optarg, MAX_PW); + exit (1); + } + strcpy (pw, optarg); break;