summaryrefslogtreecommitdiff
path: root/community/rawstudio/rawstudio-const.patch
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/rawstudio/rawstudio-const.patch
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/rawstudio/rawstudio-const.patch')
-rw-r--r--community/rawstudio/rawstudio-const.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/rawstudio/rawstudio-const.patch b/community/rawstudio/rawstudio-const.patch
new file mode 100644
index 000000000..00332fe88
--- /dev/null
+++ b/community/rawstudio/rawstudio-const.patch
@@ -0,0 +1,12 @@
+diff -Nur rawstudio-1.2.orig/src/dcraw.cc rawstudio-1.2/src/dcraw.cc
+--- rawstudio-1.2.orig/src/dcraw.cc 2009-04-10 00:21:45.000000000 +0300
++++ rawstudio-1.2/src/dcraw.cc 2009-07-16 00:05:28.169155134 +0300
+@@ -8510,7 +8510,7 @@
+ argv[argc] = "";
+ for (arg=1; (((opm = argv[arg][0]) - 2) | 2) == '+'; ) {
+ opt = argv[arg++][1];
+- if ((cp = strchr (sp="nbrkStqmHACg", opt)))
++ if ((cp = (char *)strchr (sp="nbrkStqmHACg", opt)))
+ for (i=0; i < "114111111422"[cp-sp]-'0'; i++)
+ if (!isdigit(argv[arg+i][0])) {
+ dcraw_message (DCRAW_ERROR,_("Non-numeric argument to \"-%c\"\n"), opt);