summaryrefslogtreecommitdiffstats
path: root/source/printing/pcap.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-01 05:42:39 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-01 05:42:39 +0000
commitc40e0a5d3bfa11cb3699bdba1ded91515cabaf5d (patch)
tree6d00686796f077c922a275996e154e3cd6b2140a /source/printing/pcap.c
parent80ebb0ad5499745f988921eceb4584b43ef9aaf1 (diff)
downloadsamba-c40e0a5d3bfa11cb3699bdba1ded91515cabaf5d.tar.gz
samba-c40e0a5d3bfa11cb3699bdba1ded91515cabaf5d.tar.xz
samba-c40e0a5d3bfa11cb3699bdba1ded91515cabaf5d.zip
handle tabs in printcap files
this is needed for lprng
Diffstat (limited to 'source/printing/pcap.c')
-rw-r--r--source/printing/pcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/printing/pcap.c b/source/printing/pcap.c
index 62010706bb3..fb2409fd38b 100644
--- a/source/printing/pcap.c
+++ b/source/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);