Change sprintf format string from %zu to %i
The resulting string became wrong on Windows. Instead of printing the numerical value in number_of_streams_, the string "zu" got printed. (Linux and Mac worked fine already.) This will result in a change of statistics name in the performance graphs. R=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/10569005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5776 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
da07737e68
commit
02e749f848
@ -288,7 +288,7 @@ class LowRateStreamObserver : public test::DirectTransport,
|
||||
std::string GetModifierString() {
|
||||
std::string str("_");
|
||||
char temp_str[5];
|
||||
sprintf(temp_str, "%zu", number_of_streams_);
|
||||
sprintf(temp_str, "%i", static_cast<int>(number_of_streams_));
|
||||
str += std::string(temp_str);
|
||||
str += "stream";
|
||||
str += (number_of_streams_ > 1 ? "s" : "");
|
||||
|
Loading…
Reference in New Issue
Block a user