diff options
Diffstat (limited to 'src/libstddjb/mininetstring_read.c')
-rw-r--r-- | src/libstddjb/mininetstring_read.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/mininetstring_read.c b/src/libstddjb/mininetstring_read.c index 6a38523..f7c7a55 100644 --- a/src/libstddjb/mininetstring_read.c +++ b/src/libstddjb/mininetstring_read.c @@ -22,8 +22,8 @@ int mininetstring_read (int fd, stralloc *sa, uint32 *w) } if (*w & (1U << 31)) { - char c ; - switch (fd_read(fd, &c, 1)) + unsigned char c ; + switch (fd_read(fd, (char *)&c, 1)) { case -1 : return -1 ; case 0 : return (errno = EPIPE, -1) ; |