From 0df21d01f048096734ae22fecea80ab4b9711ff8 Mon Sep 17 00:00:00 2001 From: "phoglund@webrtc.org" Date: Wed, 12 Sep 2012 17:02:10 +0000 Subject: [PATCH] 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 --- .../test/auto_test/source/vie_autotest_custom_call.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/video_engine/test/auto_test/source/vie_autotest_custom_call.cc b/src/video_engine/test/auto_test/source/vie_autotest_custom_call.cc index 2aa9db6067..16cf0c7201 100644 --- a/src/video_engine/test/auto_test/source/vie_autotest_custom_call.cc +++ b/src/video_engine/test/auto_test/source/vie_autotest_custom_call.cc @@ -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;