From 7d8191b83e163d76bb05e13b373638e4eeb7da95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Tue, 2 Dec 2014 20:17:04 +0100 Subject: Initial import of sane-frontends version 1.0.14-9 --- debian/patches/05_xcam_off_by_one.dpatch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 debian/patches/05_xcam_off_by_one.dpatch (limited to 'debian/patches/05_xcam_off_by_one.dpatch') diff --git a/debian/patches/05_xcam_off_by_one.dpatch b/debian/patches/05_xcam_off_by_one.dpatch new file mode 100644 index 0000000..deb56a0 --- /dev/null +++ b/debian/patches/05_xcam_off_by_one.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 05_xcam_off_by_one.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix an off-by-one. + +@DPATCH@ +diff -urNad sane-frontends-1.0.14~/src/xcam.c sane-frontends-1.0.14/src/xcam.c +--- sane-frontends-1.0.14~/src/xcam.c 2009-06-26 13:50:19.000000000 +0200 ++++ sane-frontends-1.0.14/src/xcam.c 2009-06-26 13:50:47.774585321 +0200 +@@ -1289,7 +1289,7 @@ + + /* 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)) || -- cgit v1.2.3