summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2004-06-26 22:37:50 +0000
committerAlastair Tse <liquidx@gentoo.org>2004-06-26 22:37:50 +0000
commitab53e27aa29c1143c73fef269c3d88c22303e99e (patch)
treee29153d9bd873f6b9da0187b719c4ae72316e8a1 /app-pda/dynamite/files
parentreally fix the sandbox problem with 0.23, add fixes to gtkhtml2 detection via... (diff)
downloadhistorical-ab53e27aa29c1143c73fef269c3d88c22303e99e.tar.gz
historical-ab53e27aa29c1143c73fef269c3d88c22303e99e.tar.bz2
historical-ab53e27aa29c1143c73fef269c3d88c22303e99e.zip
fix segv (#38766)
Diffstat (limited to 'app-pda/dynamite/files')
-rw-r--r--app-pda/dynamite/files/dynamite-0.1-segv.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/app-pda/dynamite/files/dynamite-0.1-segv.patch b/app-pda/dynamite/files/dynamite-0.1-segv.patch
new file mode 100644
index 000000000000..4e540376eafa
--- /dev/null
+++ b/app-pda/dynamite/files/dynamite-0.1-segv.patch
@@ -0,0 +1,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.1 2004/06/26 22:37:50 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) {
++ fprintf("Missing filename: dynamite <source> <destination>\n");
++ return 1;
++ }
++
+ cookie.input_file = fopen(argv[1], "r");
+ cookie.output_file = fopen(argv[2], "w");
+