From 1ab10eb365d8e2f5a337eea0b98956d5fd098c44 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Fri, 20 Mar 1998 13:37:46 +0000 Subject: Added MAXPRINTERLEN define in smb.h setting printer share name length to maximumof 15 characters. IF this needs to be limited to 8 characters again please do it in smb.h. (This used to be commit 3dfe0b135dd91864a81a5fadddc9151ac8812c6e) --- source3/printing/pcap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/printing') diff --git a/source3/printing/pcap.c b/source3/printing/pcap.c index 3698114a2f..38c4dec3fc 100644 --- a/source3/printing/pcap.c +++ b/source3/printing/pcap.c @@ -375,7 +375,7 @@ void pcap_printer_fn(void (*fn)()) continue; } - if (strlen(p) <= 8 && strlen(p)>strlen(name) && !has_punctuation) + if (strlen(p) <= MAXPRINTERLEN && strlen(p)>strlen(name) && !has_punctuation) { if (!*comment) pstrcpy(comment,name); pstrcpy(name,p); @@ -391,7 +391,7 @@ void pcap_printer_fn(void (*fn)()) } comment[60] = 0; - name[8] = 0; + name[MAXPRINTERLEN] = 0; if (*name) fn(name,comment); -- cgit