snprintf doesn't exist on windows.

TBR=mflodman@webrtc.org
BUG=

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2762 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
phoglund@webrtc.org 2012-09-12 17:02:10 +00:00
parent 54d7faa5e3
commit 0df21d01f0

View File

@ -1014,8 +1014,7 @@ bool GetVideoDevice(webrtc::ViEBase* vie_base,
const int kCaptureLineLength =
KMaxDeviceNameLength + KMaxUniqueIdLength + 8;
char capture_line[kCaptureLineLength];
snprintf(capture_line, kCaptureLineLength, "%s (%s)",
device_name, unique_id);
sprintf(capture_line, "%s (%s)", device_name, unique_id);
capture_choices += capture_line;
capture_choices += "\n";
if (first_device.empty())
@ -1282,7 +1281,7 @@ bool GetAudioCodec(webrtc::VoECodec* voe_codec,
__FUNCTION__, __LINE__);
char codec_line[128];
snprintf(codec_line, 128, "%s type: %d freq: %d chan: %d",
sprintf(codec_line, "%s type: %d freq: %d chan: %d",
audio_codec.plname, audio_codec.pltype, audio_codec.plfreq,
audio_codec.channels);
codec_choices += codec_line;