]> git.ipfire.org Git - ipfire-3.x.git/blob - cups/patches/cups-strict-ppd-line-length.patch
Change file layout of the makefiles.
[ipfire-3.x.git] / cups / patches / cups-strict-ppd-line-length.patch
1 diff -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...