Fix for webrtc issue 1052 on windows with vie_auto_test.

Review URL: https://webrtc-codereview.appspot.com/929014

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3049 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
vikasmarwaha@webrtc.org 2012-11-06 21:19:52 +00:00
parent ddcc9429e7
commit 6dddfe9c35

View File

@ -58,8 +58,9 @@ std::string ChoiceBuilder::MakeTitleWithOptions() {
Choices::const_iterator iterator = choices_.begin();
for (int number = 1; iterator != choices_.end(); ++iterator, ++number) {
char buffer[128];
sprintf(buffer, "\n %d. %s", number, (*iterator).c_str());
sprintf(buffer, "\n %d. ", number);
title_with_options += buffer;
title_with_options += (*iterator);
}
return title_with_options;
}