resize during tracker print

This commit is contained in:
tqchen 2015-04-20 11:37:45 -07:00
parent c67967161e
commit c60b284e1f

View File

@ -174,6 +174,7 @@ inline void TrackerPrintf(const char *fmt, ...) {
va_start(args, fmt);
vsnprintf(&msg[0], kPrintBuffer, fmt, args);
va_end(args);
msg.resize(strlen(msg.c_str());
TrackerPrint(msg);
}
#endif