From owner-freebsd-ports Mon Jun 18 19:40: 9 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1FF9E37B407 for ; Mon, 18 Jun 2001 19:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5J2e1t85627; Mon, 18 Jun 2001 19:40:01 -0700 (PDT) (envelope-from gnats) Received: from ccca.nctu.edu.tw (CCCA.NCTU.edu.tw [140.113.27.50]) by hub.freebsd.org (Postfix) with ESMTP id C059737B401 for ; Mon, 18 Jun 2001 19:33:49 -0700 (PDT) (envelope-from yssu@ccca.nctu.edu.tw) Received: by ccca.nctu.edu.tw (Postfix, from userid 1098) id 97D6715557; Tue, 19 Jun 2001 10:33:43 +0800 (CST) Message-Id: <20010619023343.97D6715557@ccca.nctu.edu.tw> Date: Tue, 19 Jun 2001 10:33:43 +0800 (CST) From: Yen-Shuo Su Reply-To: Yen-Shuo Su To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/28268: ports/www/webalizer: Support more than 80 chars string configuration Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 28268 >Category: ports >Synopsis: ports/www/webalizer: Support more than 80 chars string configuration >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jun 18 19:40:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Yen-Shuo Su >Release: FreeBSD 4.3-STABLE i386 >Organization: Campus Computer Communication Association >Environment: System: FreeBSD CCCA.nctu.edu.tw 4.3-STABLE FreeBSD 4.3-STABLE #3: Thu Jun 14 16:19:14 CST 2001 root@CCCA.nctu.edu.tw:/admin/obj/admin/src/sys/CCCA i386 >Description: ports/www/webalizer: Support more than 80 chars string configuration >How-To-Repeat: Use more than 80 char line in configuration file >Fix: diff -curN work/webalizer-2.01-06/linklist.c webalizer-2.01-06/linklist.c --- work/webalizer-2.01-06/linklist.c Tue Jun 19 10:29:50 2001 +++ webalizer-2.01-06/linklist.c Tue Jun 19 10:13:40 2001 @@ -190,12 +190,12 @@ int add_glist(char *str, GLISTPTR *list) { GLISTPTR newptr,cptr,pptr; - char temp_buf[80]; + char temp_buf[512]; char *name=temp_buf; /* make local copy of string */ - strncpy(temp_buf,str,79); - temp_buf[79]=0; + strncpy(temp_buf,str,511); + temp_buf[511]=0; while (!isspace((unsigned char)*name)&&*name!=0) name++; if (*name==0) name=temp_buf; diff -curN work/webalizer-2.01-06/linklist.h webalizer-2.01-06/linklist.h --- work/webalizer-2.01-06/linklist.h Fri Sep 29 11:50:30 2000 +++ webalizer-2.01-06/linklist.h Tue Jun 19 10:15:31 2001 @@ -1,12 +1,12 @@ #ifndef _LINKLIST_H #define _LINKLIST_H -struct nlist { char string[80]; /* list struct for HIDE items */ +struct nlist { char string[256]; /* list struct for HIDE items */ struct nlist *next; }; typedef struct nlist *NLISTPTR; -struct glist { char string[80]; /* list struct for GROUP items */ - char name[80]; +struct glist { char string[256]; /* list struct for GROUP items */ + char name[256]; struct glist *next; }; typedef struct glist *GLISTPTR; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message