diff -ur dynamite-0.1/src/dynamite.c dynamite-0.1a/src/dynamite.c --- dynamite-0.1/src/dynamite.c 2003-08-22 04:55:42.000000000 -0400 +++ dynamite-0.1a/src/dynamite.c 2004-06-26 21:23:39.474501584 -0400 @@ -1,6 +1,7 @@ /* $Id: dynamite-0.1-segv.patch,v 1.2 2004/07/07 03:05:39 liquidx Exp $ */ #include "libdynamite.h" #include +#include #define FCLOSE(file) if (file) { fclose(file); file = NULL; } @@ -25,6 +26,11 @@ int result = -1; Cookie cookie; + if (argc < 3) { + printf("Missing filename: dynamite \n"); + return 1; + } + cookie.input_file = fopen(argv[1], "r"); cookie.output_file = fopen(argv[2], "w");