From 5fb473fc758b5fbc1145c00dc9b95567107afd5c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 1 May 2000 05:42:39 +0000 Subject: handle tabs in printcap files this is needed for lprng (This used to be commit c40e0a5d3bfa11cb3699bdba1ded91515cabaf5d) --- source3/printing/pcap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/printing/pcap.c') diff --git a/source3/printing/pcap.c b/source3/printing/pcap.c index 62010706bb..fb2409fd38 100644 --- a/source3/printing/pcap.c +++ b/source3/printing/pcap.c @@ -385,7 +385,7 @@ void pcap_printer_fn(void (*fn)(char *, char *)) BOOL has_punctuation; if ((q = strchr(p,'|'))) *q++ = 0; - has_punctuation = (strchr(p,' ') || strchr(p,'(') || strchr(p,')')); + has_punctuation = (strchr(p,' ') || strchr(p,'\t') || strchr(p,'(') || strchr(p,')')); if (strlen(p)>strlen(comment) && has_punctuation) { @@ -411,7 +411,7 @@ void pcap_printer_fn(void (*fn)(char *, char *)) comment[60] = 0; name[MAXPRINTERLEN] = 0; - if (*name) + if (*name) fn(name,comment); } fclose(pfile); -- cgit