summaryrefslogtreecommitdiff
path: root/app-cdr/b5i2iso/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-cdr/b5i2iso/files
reinit the tree, so we can have metadata
Diffstat (limited to 'app-cdr/b5i2iso/files')
-rw-r--r--app-cdr/b5i2iso/files/b5i2iso-0.2-segfault.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/app-cdr/b5i2iso/files/b5i2iso-0.2-segfault.patch b/app-cdr/b5i2iso/files/b5i2iso-0.2-segfault.patch
new file mode 100644
index 000000000000..6fda80e79605
--- /dev/null
+++ b/app-cdr/b5i2iso/files/b5i2iso-0.2-segfault.patch
@@ -0,0 +1,18 @@
+--- b5i2iso/src/b5i2iso.c
++++ b5i2iso/src/b5i2iso.c
+@@ -1,3 +1,4 @@
++#include <errno.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -45,6 +46,10 @@
+ }
+
+ fsource = fopen(argv[1],"rb");
++if (fsource == NULL) {
++ printf("can't open %s: %s\n", argv[1], strerror(errno));
++ exit(EXIT_FAILURE);
++}
+ fdest = fopen(destfilename,"wb");
+
+ fseek(fsource, 2352, SEEK_CUR); \ No newline at end of file