cast to ssize_t instead of int.