[
https://issues.apache.org/jira/browse/GEODE-2499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16736581#comment-16736581
]
Michael Martell commented on GEODE-2499:
----------------------------------------
This is no longer a problem. Just verified in VS 2017 with /W4 and no
issues.
Please close.
Thanks,
Mike.
> 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
> Priority: Major
>
> 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
(v7.6.3#76005)