fix bug when using lpstat as printcap file - remove space at start of
authorHerb Lewis <herb@samba.org>
Fri, 30 Jan 1998 05:22:45 +0000 (05:22 +0000)
committerHerb Lewis <herb@samba.org>
Fri, 30 Jan 1998 05:22:45 +0000 (05:22 +0000)
printer names generated

source/printing/print_svid.c

index 3340568b14d5ac5b863faa60a717a8a53f0d55c9..cfdb0f1c340357a2dd87f744603a4e8cf3fbe09d 100644 (file)
@@ -60,7 +60,7 @@ static void populate_printers()
                        if (((tmp = strchr(buf, ' ')) == NULL) ||
                            ((tmp = strchr(++tmp, ' ')) == NULL))
                                continue;
-                       name = tmp++;
+                       name = ++tmp;
 
                        /* truncate the ": ..." */
                        if ((tmp = strchr(name, ':')) != NULL)