blob: ec328bcd4a1f389906521e8eccec5c000dc717be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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 <stdio.h>
+#include <stdlib.h>
#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 <source> <destination>\n");
+ return 1;
+ }
+
cookie.input_file = fopen(argv[1], "r");
cookie.output_file = fopen(argv[2], "w");
|