diff options
Diffstat (limited to 'source/printing/print_svid.c')
-rw-r--r-- | source/printing/print_svid.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/printing/print_svid.c b/source/printing/print_svid.c index 5c5eebeb502..2b615a5c49f 100644 --- a/source/printing/print_svid.c +++ b/source/printing/print_svid.c @@ -60,7 +60,17 @@ static void populate_printers(void) if (((tmp = strchr(buf, ' ')) == NULL) || ((tmp = strchr(++tmp, ' ')) == NULL)) continue; - name = ++tmp; + + /* + * In case we're only at the "for ". + */ + + if(!strncmp("for ",++tmp,4)) + { + tmp=strchr(tmp, ' '); + tmp++; + } + name = tmp; /* truncate the ": ..." */ if ((tmp = strchr(name, ':')) != NULL) |