Loosing the printers at cups 1.2 snapshot r4535

stanco at t-email.hu stanco at t-email.hu
Fri Jun 17 10:23:31 PDT 2005


fraz wrote:
> I compiled the new snapshot r4535.
....
> E [11/Jun/2005:09:40:34 +0200] Syntax error on line 3 of printers.conf.

Hi,

after setting the name[] on LoadAllPrinters()'s stack, printers.conf get 
parsed as expected.


svn diff scheduler/printers.c
Index: scheduler/printers.c
===================================================================
--- scheduler/printers.c        (revision 4535)
+++ scheduler/printers.c        (working copy)
@@ -830,7 +830,7 @@
    linenum = 0;
    p       = NULL;

-  while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum))
+  while (cupsFileGetConf(fp, name, sizeof(name), &value, &linenum))
    {
     /*
      * Decode the directive...

====================================================================


-- 
Happy printing, Stanco




More information about the cups-devel mailing list