Fix segmentation violation problem and make b5c works with DEVFS

in -CURRENT.

Also tested under -STABLE.

PR:		ports/28341
This commit is contained in:
Jing-Tang Keith Jang 2001-06-22 17:41:48 +00:00
parent 102d885cdc
commit f681fb83ea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=44325
2 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= big5con
PORTVERSION= 0.92e
PORTREVISION= 1
CATEGORIES= chinese
MASTER_SITES= ftp://bsd.sinica.edu.tw/pub/FreeBSD/taiwan/users/woju/source/ \
ftp://bsd.sinica.edu.tw/pub/FreeBSD/taiwan/users/woju/binary/ \

View File

@ -0,0 +1,11 @@
--- src/child.c.orig Fri Jun 22 23:14:24 2001
+++ src/child.c Sat Jun 23 00:48:55 2001
@@ -106,7 +106,7 @@
#if defined(linux)
*(ttyname(fileno(errfp))+8));
#elif defined(__FreeBSD__)
- *(ttyname(fileno(errfp))+9));
+ ttyname(fileno(errfp)) ? *(ttyname(fileno(errfp))+9) : '?');
#endif
fflush(stdout);