mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-21 08:42:23 +00:00
8f842d867f
(merge from www/geolizer) Suggested by: Steve Clement, David Raison Reviewed by: Andrey Chernov
19 lines
547 B
Diff
19 lines
547 B
Diff
--- 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;
|