summaryrefslogtreecommitdiff
path: root/debian/patches/0115-xcam_off_by_one.patch
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-09-08 19:05:34 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-09-08 19:05:34 +0200
commit267f9007f6f0142853ba5f99f3f72a58f8fb857f (patch)
treef3869bbd7e4dcefff0c04a8eff4d3903abdc409d /debian/patches/0115-xcam_off_by_one.patch
parentac5d58282438345b4d12a24334efcc0299c15165 (diff)
Rename patches and remove not used debian/patches/scanadf-sigchld.diff
Diffstat (limited to 'debian/patches/0115-xcam_off_by_one.patch')
-rw-r--r--debian/patches/0115-xcam_off_by_one.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/0115-xcam_off_by_one.patch b/debian/patches/0115-xcam_off_by_one.patch
new file mode 100644
index 0000000..0b91cc4
--- /dev/null
+++ b/debian/patches/0115-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)) ||