Michael Martell created GEODE-2499: -------------------------------------- Summary: Replace snprintf with <sstream> Key: GEODE-2499 URL: https://issues.apache.org/jira/browse/GEODE-2499 Project: Geode Issue Type: Task Components: native client Reporter: Michael Martell
Using snprintf on Windows has problems. These can be avoided by switching to newer <sstream> construct as below. This task is to replace snprintf everywhere in the code (100 or so occurances). Instead of: char exMsg[256]; std::snprintf(exMsg, 255, "TcrMessageHelper::readChunkPartHeader: " "%s: part is not object", methodName); LOGDEBUG("%s ", exMsg); use: std::stringstream s; s << "TcrMessageHelper::readChunkPartHeader: " << methodName << ": part is not object\n"; LOGDEBUG("%s ", s.str().c_str()); -- This message was sent by Atlassian JIRA (v6.3.15#6346)