japanese/newosaka: Fix build on 13, 14
PR: 275793 Reported by: Yoshiaki Uchikawa <yoshiaki@kt.rim.or.jp>
This commit is contained in:
parent
1129bbfc32
commit
28532c2d3d
2 changed files with 11 additions and 5 deletions
|
@ -7,11 +7,6 @@ DISTFILES= new-osaka.tar.gz
|
|||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Translator of Japanese EUC documents into Osaka language
|
||||
|
||||
DEPRECATED= BROKEN on all supported versions for more than 4 years after the EOL of 12
|
||||
EXPIRATION_DATE= 2023-12-31
|
||||
BROKEN_FreeBSD_13= ld: error: undefined symbol: gets
|
||||
BROKEN_FreeBSD_14= ld: error: undefined symbol: gets
|
||||
|
||||
PLIST_FILES= bin/osaka
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
|
|
11
japanese/newosaka/files/patch-osaka.c
Normal file
11
japanese/newosaka/files/patch-osaka.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- osaka.c.orig 1996-05-18 15:47:59 UTC
|
||||
+++ osaka.c
|
||||
@@ -11,7 +11,7 @@ char **argv;
|
||||
char inbuf[8192], outbuf[8400];
|
||||
char inmoji, henmoji;
|
||||
|
||||
- while(gets(inbuf) != NULL)
|
||||
+ while(fgets(inbuf, sizeof(inbuf), stdin) != NULL)
|
||||
{
|
||||
inmoji = inbuf[0];
|
||||
inmoji2 = (unsigned long)inmoji & 0x0ff;
|
Loading…
Reference in a new issue