[openrtm-commit:02269] r2874 - branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm
openrtm @ openrtm.org
openrtm @ openrtm.org
2017年 1月 19日 (木) 15:28:05 JST
Author: sec_fukai
Date: 2017-01-19 15:28:05 +0900 (Thu, 19 Jan 2017)
New Revision: 2874
Modified:
branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SystemLogger.cpp
Log:
[compat,->DEV_IQ_2016]Modify coding style. refs #3816
Modified: branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SystemLogger.cpp
===================================================================
--- branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SystemLogger.cpp 2017-01-19 06:22:20 UTC (rev 2873)
+++ branches/DEV_IQ_2016/OpenRTM-aist/src/lib/rtm/SystemLogger.cpp 2017-01-19 06:28:05 UTC (rev 2874)
@@ -167,9 +167,9 @@
{
char msec[4];
#ifdef WIN32
- _snprintf(msec, 4, "%03d", static_cast<int>(tm.usec() / 1000));
+ _snprintf(msec, sizeof(msec), "%03d", static_cast<int>(tm.usec() / 1000));
#else
- snprintf(msec, 4, "%03d", static_cast<int>(tm.usec() / 1000));
+ snprintf(msec, sizeof(msec), "%03d", static_cast<int>(tm.usec() / 1000));
#endif
coil::replaceString(fmt, "#m#", msec);
}
@@ -177,10 +177,10 @@
{
char usec[4];
#ifdef WIN32
- _snprintf(usec, 4, "%03d",
+ _snprintf(usec, sizeof(usec), "%03d",
static_cast<int>(tm.usec() - ((tm.usec() / 1000) * 1000)));
#else
- snprintf(usec, 4, "%03d",
+ snprintf(usec, sizeof(usec), "%03d",
static_cast<int>(tm.usec() - ((tm.usec() / 1000) * 1000)));
#endif
coil::replaceString(fmt, "#u#", usec);
More information about the openrtm-commit
mailing list