diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-09-09 08:47:12 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-09-09 08:47:12 +0200 |
commit | 311a42d3c545f079f8a9428c52fbdc73731bdc37 (patch) | |
tree | d41dcf944b969257cd5ed62ccb7166305015a642 /debian/patches/0115-xcam_off_by_one.patch | |
parent | 4a8a70149879404d36ccd39c5983e3a9760af07e (diff) | |
parent | 16a4948c7243ab0e228780b3a2b9aea97900f32a (diff) |
Merge branch 'release/debian/1.0.14-13'debian/1.0.14-13
Diffstat (limited to 'debian/patches/0115-xcam_off_by_one.patch')
-rw-r--r-- | debian/patches/0115-xcam_off_by_one.patch | 15 |
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)) || |