diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-08-23 07:10:50 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-08-23 07:10:50 +0200 |
commit | 2c3190e848120a35a36531b475a53b81e38335cc (patch) | |
tree | beb5463e9fb71f591393ac192c2d8db48f714312 /debian/patches | |
parent | 99c715d9ba681eb0e4a36a2fba7c97df74b1a968 (diff) |
Add patch to remove trailing whitespaces on ppd files.debian/4.0.17-5
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/0010-ppd_trailing_whitespace.patch | 24 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/0010-ppd_trailing_whitespace.patch b/debian/patches/0010-ppd_trailing_whitespace.patch new file mode 100644 index 0000000..7efd6ac --- /dev/null +++ b/debian/patches/0010-ppd_trailing_whitespace.patch @@ -0,0 +1,24 @@ +Description: remove trailing whitespaces from ppd files + Remove trailing whitespaces from ppd file to prevent segfault +Author: Jörg Frings-Fürst <debian@jff-webhosting.net> +Bug: https://bugs.linuxfoundation.org/show_bug.cgi?id=1227 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758133 +Forwarded: https://bugs.linuxfoundation.org/show_bug.cgi?id=1227 +Last-Update: 2014-08-23 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/options.c +=================================================================== +--- trunk.orig/options.c 2014-08-17 09:56:36.990949026 +0200 ++++ trunk/options.c 2014-08-17 09:59:43.750779956 +0200 +@@ -1628,6 +1628,10 @@ + /* remove last newline */ + dstrremovenewline(value); + ++ /* remove last whitespace */ ++ /* new 2014-08-17 */ ++ dstrtrim_right(value); ++ + /* process key/value pairs */ + if (strcmp(key, "NickName") == 0) { + unhtmlify(printer_model, 256, value->data); diff --git a/debian/patches/series b/debian/patches/series index 2ea9c4c..3cea5ec 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ +0010-ppd_trailing_whitespace.patch 0002-pdf_header.patch 0001-spelling-errors.diff fixed-segfault-when-creating-logfile.patch |