aboutsummaryrefslogtreecommitdiff
path: root/graphics/zphoto
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/zphoto')
-rw-r--r--graphics/zphoto/files/patch-image.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/zphoto/files/patch-image.cpp b/graphics/zphoto/files/patch-image.cpp
new file mode 100644
index 000000000000..68e00e71744d
--- /dev/null
+++ b/graphics/zphoto/files/patch-image.cpp
@@ -0,0 +1,13 @@
+--- image.cpp.orig 2004-07-20 16:48:11 UTC
++++ image.cpp
+@@ -554,8 +554,8 @@ restore_mtime (const char *file_name, ti
+ static int
+ convert_needed_p (const char *src, const char *dest)
+ {
+- char *suffix1 = strrchr(src, '.');
+- char *suffix2 = strrchr(dest, '.');
++ const char *suffix1 = strrchr(src, '.');
++ const char *suffix2 = strrchr(dest, '.');
+
+ return strcmp(suffix1, suffix2) != 0;
+ }