diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp index 4cdb9a579..2fff7f8f4 100644 --- a/src/lib_json/json_reader.cpp +++ b/src/lib_json/json_reader.cpp @@ -781,7 +781,11 @@ std::string Reader::getLocationLineAndColumn(Location location) const { getLocationLineAndColumn(location, line, column); char buffer[18 + 16 + 16 + 1]; #if defined(_MSC_VER) && defined(__STDC_SECURE_LIB__) + #if defined(WINCE) + _snprintf(buffer, sizeof(buffer), "Line %d, Column %d", line, column); + #else sprintf_s(buffer, sizeof(buffer), "Line %d, Column %d", line, column); + #endif #else snprintf(buffer, sizeof(buffer), "Line %d, Column %d", line, column); #endif