diff --git a/src/ReturnCodes.cpp b/src/ReturnCodes.cpp index b367ead..408d8cf 100644 --- a/src/ReturnCodes.cpp +++ b/src/ReturnCodes.cpp @@ -70,7 +70,7 @@ std::string GetReturnStatus(const int code) { char *GetReturnStatusCharArray(const int code) { const std::string msg = GetReturnStatus(code); char *c_msg = new char[msg.size() + 1]; -#ifndef _WIN32 +#ifdef _WIN32 strcpy_s(c_msg, msg.size() + 1, msg.c_str()); #else strcpy(c_msg, msg.c_str());