Fix usage of strerror_r