diff options
Diffstat (limited to 'src/utmps/utmps_updwtmpx.c')
| -rw-r--r-- | src/utmps/utmps_updwtmpx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utmps/utmps_updwtmpx.c b/src/utmps/utmps_updwtmpx.c index 5b0557e..33dd9bc 100644 --- a/src/utmps/utmps_updwtmpx.c +++ b/src/utmps/utmps_updwtmpx.c @@ -18,7 +18,7 @@ int utmps_updwtmpx (char const *path, struct utmpx const *b, tain const *deadlin r = ipc_timed_recv(a.fd, buf, 1, 0, deadline, stamp) ; if (r < 0) goto err ; if (!r) { errno = EPIPE ; goto err ; } - if (buf[0]) { errno = buf[0] ; goto err ; } + if (buf[0]) { errno = (unsigned char)buf[0] ; goto err ; } utmps_end(&a) ; return 1 ; |
