1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Patch an fgets overflow and bump PORTREVISION.

Obtained from:	OpenBSD
This commit is contained in:
Kris Kennaway 2003-06-27 04:01:53 +00:00
parent cd2c175bc3
commit 26c8e115eb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83707
2 changed files with 13 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= lgrind
PORTVERSION= 3.67
PORTREVISION= 1
CATEGORIES= print
#MASTER_SITES= ftp://ftp.dante.de/tex-archive/support/ \
MASTER_SITES= ${MASTER_SITE_TEX_CTAN}

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-lgutil_c,v 1.1 2003/05/01 11:54:15 avsm Exp $
--- source/lgutil.c.orig Tue Apr 15 22:55:24 2003
+++ source/lgutil.c Tue Apr 15 22:56:21 2003
@@ -113,7 +113,7 @@ void Internal_Help_Language_List()
check=0;
if (*config=='\n' || config[strlen(config)-2]!='\\')
check=1;
- if (fgets(config, BUFFERSIZE, tf)==NULL) break;
+ if (fgets(config, sizeof config, tf)==NULL) break;
if (check!=0) AddToLList(config, &currlch, &llch);
} while (strcmp((*currlch).name, "EndOfLanguageDefinitions")!=0);
rch=lch;