summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/zphoto/files/zphoto-1.2-glibc210.patch')
-rw-r--r--media-gfx/zphoto/files/zphoto-1.2-glibc210.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/media-gfx/zphoto/files/zphoto-1.2-glibc210.patch b/media-gfx/zphoto/files/zphoto-1.2-glibc210.patch
new file mode 100644
index 000000000000..20f72c595675
--- /dev/null
+++ b/media-gfx/zphoto/files/zphoto-1.2-glibc210.patch
@@ -0,0 +1,18 @@
+diff -NrU5 zphoto-1.2.original/image.cpp zphoto-1.2/image.cpp
+--- zphoto-1.2.original/image.cpp 2009-07-20 17:13:30.000000000 +0000
++++ zphoto-1.2/image.cpp 2009-07-20 17:18:38.000000000 +0000
+@@ -552,12 +552,12 @@
+ }
+
+ static int
+ convert_needed_p (const char *src, const char *dest)
+ {
+- char *suffix1 = strrchr(src, '.');
+- char *suffix2 = strrchr(dest, '.');
++ char *suffix1 = const_cast<char*>(strrchr(src, '.'));
++ char *suffix2 = const_cast<char*>(strrchr(dest, '.'));
+
+ return strcmp(suffix1, suffix2) != 0;
+ }
+
+ extern "C" void