this should fix the windows build

This commit is contained in:
Zach Bacon 2017-05-11 22:13:11 -04:00
parent dd34951d2f
commit e95c083466
1 changed files with 1 additions and 1 deletions

View File

@ -766,7 +766,7 @@ void SaveConfigFile()
if (f == NULL) {
char err_msg[4096] = "unknown error";
#ifdef _WIN32
sterror_s(errno, err_msg, 4096);
strerror_s(err_msg, errno, 4096);
#else
strerror_r(errno, err_msg, 4096);
#endif