summaryrefslogtreecommitdiff
path: root/src/libstddjb/mininetstring_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/mininetstring_write.c')
-rw-r--r--src/libstddjb/mininetstring_write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/mininetstring_write.c b/src/libstddjb/mininetstring_write.c
index cb3c30e..5eddc7b 100644
--- a/src/libstddjb/mininetstring_write.c
+++ b/src/libstddjb/mininetstring_write.c
@@ -23,8 +23,8 @@ int mininetstring_write (int fd, char const *s, uint16 len, uint32 *w)
}
if (*w & (1U << 31))
{
- char c = len & 0xFFU ;
- switch (fd_write(fd, &c, 1))
+ unsigned char c = len & 0xFFU ;
+ switch (fd_write(fd, (char const *)&c, 1))
{
case -1 : return -1 ;
case 0 : return (errno = EAGAIN, -1) ;