diff --git a/libsemanage/src/direct_api.c b/libsemanage/src/direct_api.c index d740070d5..7631c7bf5 100644 --- a/libsemanage/src/direct_api.c +++ b/libsemanage/src/direct_api.c @@ -582,7 +582,7 @@ static int semanage_direct_update_seuser(semanage_handle_t * sh, cil_db_t *cildb static int read_from_pipe_to_data(semanage_handle_t *sh, size_t initial_len, int fd, char **out_data_read, size_t *out_read_len) { size_t max_len = initial_len; - size_t read_len = 0; + ssize_t read_len = 0; size_t data_read_len = 0; char *data_read = NULL;