Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jun 2001 10:33:43 +0800 (CST)
From:      Yen-Shuo Su <yssu@ccca.nctu.edu.tw>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/28268: ports/www/webalizer: Support more than 80 chars string configuration
Message-ID:  <20010619023343.97D6715557@ccca.nctu.edu.tw>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010619023343.97D6715557>