patch off-by-ones in input dialogs; bump PKGNAME

version in ports is too old to submit patches upstream I think
This commit is contained in:
avsm 2003-06-17 15:03:54 +00:00
parent c2ff71534d
commit 0b39258e43
2 changed files with 86 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.9 2002/10/29 01:30:41 naddy Exp $
# $OpenBSD: Makefile,v 1.10 2003/06/17 15:03:54 avsm Exp $
#
# Many variables moved to ../Makefile.inc
@ -6,7 +6,7 @@ COMMENT= "test-bed browser/authoring tool of the W3C"
AMAYA_VERSION= 5.1
DISTNAME= amaya-src-${AMAYA_VERSION}
PKGNAME= amaya-${AMAYA_VERSION}
PKGNAME= amaya-${AMAYA_VERSION}p1
HOMEPAGE= http://www.w3.org/Amaya/

View File

@ -0,0 +1,84 @@
$OpenBSD: patch-Amaya_thotlib_dialogue_input_c,v 1.1 2003/06/17 15:03:54 avsm Exp $
--- Amaya/thotlib/dialogue/input.c.orig Tue Jun 17 15:49:22 2003
+++ Amaya/thotlib/dialogue/input.c Tue Jun 17 15:51:33 2003
@@ -1252,7 +1252,7 @@ ThotTranslations InitTranslations (
/* FnCopy la premiere ligne du fichier (#override, ou #...) */
strcpy (text, "#override\n");
ch[0] = 0;
- fscanf (file, "%80s", ch);
+ fscanf (file, "%79s", ch);
do
{
/* Initialisations */
@@ -1277,7 +1277,7 @@ ThotTranslations InitTranslations (
strcat (line, " ");
/* Lecture enventuelle d'un deuxieme modifieur */
ch[0] = 0;
- fscanf (file, "%80s", ch);
+ fscanf (file, "%79s", ch);
}
else
{
@@ -1295,7 +1295,7 @@ ThotTranslations InitTranslations (
strcat (line, " ");
/* Lecture de la cle */
ch[0] = 0;
- fscanf (file, "%80s", ch);
+ fscanf (file, "%79s", ch);
}
else if (!strcasecmp (ch, "alt") || !strcasecmp (ch, "meta"))
{
@@ -1307,7 +1307,7 @@ ThotTranslations InitTranslations (
strcat (line, " ");
/* Lecture de la cle */
ch[0] = 0;
- fscanf (file, "%80s", ch);
+ fscanf (file, "%79s", ch);
}
/* Extrait la valeur de la cle */
@@ -1345,7 +1345,7 @@ ThotTranslations InitTranslations (
/* copie du separateur */
strcat (line, ", ");
ch[0] = 0;
- fscanf (file, "%80s", ch);
+ fscanf (file, "%79s", ch);
if (!strcasecmp (ch, "shift"))
{
@@ -1357,7 +1357,7 @@ ThotTranslations InitTranslations (
strcat (line, " ");
/* Lecture enventuelle d'un deuxieme modifieur */
ch[0] = 0;
- fscanf (file, "%80s", ch);
+ fscanf (file, "%79s", ch);
}
else
{
@@ -1375,7 +1375,7 @@ ThotTranslations InitTranslations (
strcat (line, " ");
/* copie de la cle */
ch[0] = 0;
- fscanf (file, "%80s", ch);
+ fscanf (file, "%79s", ch);
strcat (line, ch);
strcat (line, " ");
}
@@ -1389,7 +1389,7 @@ ThotTranslations InitTranslations (
strcat (line, " ");
/* copie de la cle */
ch[0] = 0;
- fscanf (file, "%80s", ch);
+ fscanf (file, "%79s", ch);
strcat (line, ch);
strcat (line, " ");
}
@@ -1498,7 +1498,7 @@ ThotTranslations InitTranslations (
while (i != NEW_LINE);
}
ch[0] = 0;
- fscanf (file, "%80s", ch);
+ fscanf (file, "%79s", ch);
} while (e != 0);
fclose (file);