summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2004-08-27 12:45:45 +0000
committerPeter Pentchev <roam@FreeBSD.org>2004-08-27 12:45:45 +0000
commit92b591f201b18182c75285c6f33efe64e194b3c2 (patch)
treee1600801e179e0f5570c70ea355a12d54cff3660 /misc
parentUpdate to 20040826. (diff)
Fix a long-standing problem with displaying characters with the 8th
bit set: the return value of fgets() should NOT be kept in a signed char variable, since passing that to addch() would sign-extend it, setting a whole lot of attribute bits and resulting in a bold, blinking, alt-charset display of e.g. all Cyrillic characters. Instead, keep fgets()'s result in an int variable, as $DEITY (dmr? :) intended. Bump PORTREVISION for the functionality change.
Notes
Notes: svn path=/head/; revision=117415
Diffstat (limited to 'misc')
-rw-r--r--misc/display/Makefile1
-rw-r--r--misc/display/files/patch-aa6
2 files changed, 5 insertions, 2 deletions
diff --git a/misc/display/Makefile b/misc/display/Makefile
index 3271163bb79b..8c33e0352364 100644
--- a/misc/display/Makefile
+++ b/misc/display/Makefile
@@ -7,6 +7,7 @@
PORTNAME= display
PORTVERSION= 1.2
+PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= http://www.ipsmart.com/src/
EXTRACT_SUFX= .tgz
diff --git a/misc/display/files/patch-aa b/misc/display/files/patch-aa
index 5f12009460d1..dd3156f827b2 100644
--- a/misc/display/files/patch-aa
+++ b/misc/display/files/patch-aa
@@ -27,12 +27,14 @@
for(i = 0; i < 128; i++)
{
-@@ -90,7 +90,7 @@
+@@ -90,8 +90,8 @@
void display()
{
- FILE *fp, *popen();
+- char ch;
+ FILE *fp;
- char ch;
++ int ch;
char *dt;
time_t tnow;
+ int nlines;