According to the manpage of strtol (Notes), we have to zero errno before calling strtol if we want to use errno to determine if an error occurred.
I've corrected (hopefully) all such bugs in runguard, where some prevented me successfully running judgehost on our server. Not sure whether such kind of bugs exist elsewhere in this project.
According to the manpage of strtol (Notes), we have to zero errno before calling
strtol
if we want to use errno to determine if an error occurred.I've corrected (hopefully) all such bugs in runguard, where some prevented me successfully running judgehost on our server. Not sure whether such kind of bugs exist elsewhere in this project.