openbsd-ports/games/zoom/patches/patch-src_stream_c
pvalchev 172e835ac0 fgetc returns int, not char!
fixes bug on macppc/cats due to unsigned char (EOF check is -1)
2004-09-18 23:58:30 +00:00

13 lines
375 B
Plaintext

$OpenBSD: patch-src_stream_c,v 1.3 2004/09/18 23:58:30 pvalchev Exp $
--- src/stream.c.orig Fri Aug 30 08:46:50 2002
+++ src/stream.c Sat Sep 18 17:52:21 2004
@@ -284,7 +284,7 @@ int stream_readline(int* buf, int len, l
if (machine.script_on)
{
int pos = 0;
- char rc;
+ int rc;
static const int nl[] = { '\n', 0 };
display_update();