head	1.3;
access;
symbols
	RELEASE_5_EOL:1.2
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2
	PRE_XORG_7:1.2
	RELEASE_4_EOL:1.2
	RELEASE_6_2_0:1.2
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2
	RELEASE_6_0_0:1.1
	RELEASE_5_4_0:1.1
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1
	RELEASE_5_2_1:1.1
	RELEASE_5_2_0:1.1
	RELEASE_4_9_0:1.1
	RELEASE_5_1_0:1.1
	RELEASE_4_8_0:1.1
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1
	RELEASE_4_5_0:1.1
	RELEASE_4_4_0:1.1;
locks; strict;
comment	@# @;


1.3
date	2008.07.17.14.08.56;	author dinoex;	state dead;
branches;
next	1.2;

1.2
date	2005.09.04.15.46.50;	author dinoex;	state Exp;
branches;
next	1.1;

1.1
date	2001.06.23.13.02.26;	author dinoex;	state Exp;
branches;
next	;


desc
@@


1.3
log
@- update to 2.20-01
@
text
@--- linklist.h.orig	Fri Sep 29 05:50:30 2000
+++ linklist.h	Sat Jun 23 11:15:57 2001
@@@@ -1,12 +1,18 @@@@
 #ifndef _LINKLIST_H
 #define _LINKLIST_H
 
-struct nlist {  char string[80];           /* list struct for HIDE items   */
+#ifndef	LINKLIST_MAX_STRING
+#define	LINKLIST_MAX_STRING	80
+#endif
+
+struct nlist {                             /* list struct for HIDE items   */
+              char string[LINKLIST_MAX_STRING];
               struct nlist *next; };
 typedef struct nlist *NLISTPTR;
 
-struct glist {  char string[80];           /* list struct for GROUP items  */
-                char name[80];
+struct glist {                             /* list struct for GROUP items  */
+              char string[LINKLIST_MAX_STRING];
+              char name[LINKLIST_MAX_STRING];
               struct glist *next; };
 typedef struct glist *GLISTPTR;
 
@


1.2
log
@- add geolizer patches
(merge from www/geolizer)
Suggested by: Steve Clement, David Raison
Reviewed by:	Andrey Chernov
@
text
@@


1.1
log
@Max maximum length of each entry configureable:
Port uses now -DLINKLIST_MAX_STRING=256

PR:		28268
Submitted by:	Yen-Shuo Su <yssu@@ccca.nctu.edu.tw>
@
text
@a0 18
--- linklist.c.orig	Sat Jun 23 11:12:40 2001
+++ linklist.c	Sat Jun 23 11:19:54 2001
@@@@ -190,12 +190,12 @@@@
 int add_glist(char *str, GLISTPTR *list)
 {
    GLISTPTR newptr,cptr,pptr;
-   char temp_buf[80];
+   char temp_buf[LINKLIST_MAX_STRING];
    char *name=temp_buf;
 
    /* make local copy of string */
-   strncpy(temp_buf,str,79);
-   temp_buf[79]=0;
+   strncpy(temp_buf,str,LINKLIST_MAX_STRING - 1);
+   temp_buf[LINKLIST_MAX_STRING - 1]=0;
 
    while (!isspace((unsigned char)*name)&&*name!=0) name++;
    if (*name==0) name=temp_buf;
@

