git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@1415
7a7537e8-13f0-0310-91df-
b6672ffda945
/dev/usb/usblp# filenames.
- The PRINTER and LPDEST environment variables did not
override the lpoptions default printer.
+ - The PPD read functions incorrectly included trailing
+ characters (usually whitespace) after quoted string
+ attributes.
CHANGES IN CUPS v1.1.4
/*
- * "$Id: ppd.c,v 1.46 2000/09/18 00:34:45 mike Exp $"
+ * "$Id: ppd.c,v 1.47 2000/10/19 02:03:24 mike Exp $"
*
* PPD file routines for the Common UNIX Printing System (CUPS).
*
*lineptr++ = ch;
if (ch == '\"')
- endquote = !endquote;
+ {
+ endquote = !endquote;
+
+ if (!endquote)
+ {
+ /*
+ * End of quoted string; ignore trailing characters...
+ */
+
+ while ((ch = getc(fp)) != EOF)
+ if (ch == '\n')
+ break;
+ else if (ch == '\r')
+ {
+ ch = getc(fp);
+ if (ch != '\n')
+ ungetc(ch, fp);
+ break;
+ }
+
+ break;
+ }
+ }
}
}
/*
- * End of "$Id: ppd.c,v 1.46 2000/09/18 00:34:45 mike Exp $".
+ * End of "$Id: ppd.c,v 1.47 2000/10/19 02:03:24 mike Exp $".
*/