From 9fc20d07b75934bb92b0ff9da65f4c73b90d272d Mon Sep 17 00:00:00 2001 From: malc Date: Tue, 29 Mar 2011 22:17:30 +0400 Subject: [PATCH] Fix signed/unsigned mixup (John Stuffer) Plain char is distinct type whether it is signed or unsigned is implementation defined (6.2.5.15 and note #45) so use proper type. --- link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/link.c b/link.c index 96dc6c4..4dfc8ec 100644 --- a/link.c +++ b/link.c @@ -376,7 +376,7 @@ static void openxref (char *filename) static int readlen (int fd) { ssize_t n; - char p[4]; + unsigned char p[4]; n = recv (fd, p, 4, 0); if (n != 4) { -- 2.11.4.GIT