]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - cups/patches/cups-strict-ppd-line-length.patch
Move all packages to root.
[people/ms/ipfire-3.x.git] / cups / patches / cups-strict-ppd-line-length.patch
CommitLineData
f92713d3
SS
1diff -up cups-1.3.5/cups/ppd.c~ cups-1.3.5/cups/ppd.c
2--- cups-1.3.5/cups/ppd.c~ 2007-11-30 19:29:50.000000000 +0000
3+++ cups-1.3.5/cups/ppd.c 2008-01-09 12:08:48.000000000 +0000
4@@ -2801,7 +2801,7 @@ ppd_read(cups_file_t *fp, /* I - Fil
5 *lineptr++ = ch;
6 col ++;
7
8- if (col > (PPD_MAX_LINE - 1))
9+ if (col > (PPD_MAX_LINE - 1) && cg->ppd_conform == PPD_CONFORM_STRICT)
10 {
11 /*
12 * Line is too long...
13@@ -2868,7 +2868,7 @@ ppd_read(cups_file_t *fp, /* I - Fil
14 {
15 col ++;
16
17- if (col > (PPD_MAX_LINE - 1))
18+ if (col > (PPD_MAX_LINE - 1) && cg->ppd_conform == PPD_CONFORM_STRICT)
19 {
20 /*
21 * Line is too long...
22@@ -2931,7 +2931,7 @@ ppd_read(cups_file_t *fp, /* I - Fil
23 {
24 col ++;
25
26- if (col > (PPD_MAX_LINE - 1))
27+ if (col > (PPD_MAX_LINE - 1) && cg->ppd_conform == PPD_CONFORM_STRICT)
28 {
29 /*
30 * Line is too long...