summaryrefslogtreecommitdiff
path: root/debian/patches/05_xcam_off_by_one.patch
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-12-04 19:57:41 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-12-04 19:57:41 +0100
commit9f01cda55d519406248fc095667442575b7329f0 (patch)
tree9533f890cd86b5f1dd612f3ae3c9a5becbdb080a /debian/patches/05_xcam_off_by_one.patch
parent9d7b3dd818adbeb80fb7274e01be3a2e49f10f4e (diff)
Many work to make DebSrc3 fit
Diffstat (limited to 'debian/patches/05_xcam_off_by_one.patch')
-rw-r--r--debian/patches/05_xcam_off_by_one.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/05_xcam_off_by_one.patch b/debian/patches/05_xcam_off_by_one.patch
new file mode 100644
index 0000000..0b91cc4
--- /dev/null
+++ b/debian/patches/05_xcam_off_by_one.patch
@@ -0,0 +1,15 @@
+Author: <jblache@debian.org>
+Description: Fix an off-by-one.
+Index: trunk/src/xcam.c
+===================================================================
+--- trunk.orig/src/xcam.c
++++ trunk/src/xcam.c
+@@ -1287,7 +1287,7 @@ save_frame_button (GtkWidget * widget, g
+
+ /* test for pnm formats */
+ strncpy (testfilename, preferences.filename, sizeof (testfilename));
+- testfilename[sizeof (testfilename)] = 0;
++ testfilename[sizeof (testfilename) - 1] = 0;
+ g_strreverse (testfilename);
+ if (!((!strncmp (testfilename, "mnp.", 4)) ||
+ (!strncmp (testfilename, "mgp.", 4)) ||