ssize_t was used incorrectly (only [-1, INT_MAX]