From 28b63be83b24f4ed628a5a63336840df83ef2423 Mon Sep 17 00:00:00 2001 From: Keith Rarick Date: Mon, 10 Sep 2012 00:58:03 -0700 Subject: [PATCH] fix tests on big-endian machines Read test bytes into the correct address. Fixes #108. --- integ-test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integ-test.c b/integ-test.c index 85330ea..0e5d28b 100644 --- a/integ-test.c +++ b/integ-test.c @@ -155,7 +155,8 @@ mustforksrv() static char * readline(int fd) { - int r, c = 0, p = 0, i = 0; + int r, i = 0; + char c = 0, p = 0; static char buf[1024]; fd_set rfd; struct timeval tv; -- 2.11.4.GIT