summaryrefslogtreecommitdiff
path: root/src/libstddjb/child_spawn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/child_spawn.c')
-rw-r--r--src/libstddjb/child_spawn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/child_spawn.c b/src/libstddjb/child_spawn.c
index 18cee96..addc7cd 100644
--- a/src/libstddjb/child_spawn.c
+++ b/src/libstddjb/child_spawn.c
@@ -138,8 +138,8 @@ pid_t child_spawn (char const *prog, char const *const *argv, char const *const
syncdie:
{
- char c = errno ;
- fd_write(syncpipe[1], &c, 1) ;
+ unsigned char c = errno ;
+ fd_write(syncpipe[1], (char const *)&c, 1) ;
}
_exit(127) ;
}