diff options
Diffstat (limited to 'src/libunixonacid')
-rw-r--r-- | src/libunixonacid/textclient_command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libunixonacid/textclient_command.c b/src/libunixonacid/textclient_command.c index 1c1417e..e14d630 100644 --- a/src/libunixonacid/textclient_command.c +++ b/src/libunixonacid/textclient_command.c @@ -11,6 +11,6 @@ int textclient_command (textclient *a, char const *s, size_t len, tain const *de struct iovec ans ; if (!textclient_exchange(a, s, len, &ans, deadline, stamp)) return 0 ; if (ans.iov_len != 1) return (errno = EPROTO, 0) ; - if (*(char *)ans.iov_base) return (errno = *(char *)ans.iov_base, 0) ; + if (*(unsigned char *)ans.iov_base) return (errno = *(unsigned char *)ans.iov_base, 0) ; return 1 ; } |