From 4edf9ac149e4310607182a7a74877a41a3b6baa8 Mon Sep 17 00:00:00 2001 From: "henrika@google.com" Date: Wed, 13 Jul 2011 08:11:23 +0000 Subject: [PATCH] Fixes bug where size of input strings did not match input parameters to GetRecording/PlayoutDeviceName() APIs. BUG=https://code.google.com/p/webrtc/issues/detail?id=21 Review URL: http://webrtc-codereview.appspot.com/71001 git-svn-id: http://webrtc.googlecode.com/svn/trunk@197 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/voice_engine/main/test/cmd_test/voe_cmd_test.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/voice_engine/main/test/cmd_test/voe_cmd_test.cc b/src/voice_engine/main/test/cmd_test/voe_cmd_test.cc index 7167f3042..cafcd1ab6 100644 --- a/src/voice_engine/main/test/cmd_test/voe_cmd_test.cc +++ b/src/voice_engine/main/test/cmd_test/voe_cmd_test.cc @@ -217,7 +217,7 @@ void run_test() { strcpy(ip, "127.0.0.1"); #else char localip[64]; - netw->GetLocalIP(localip, 64); + netw->GetLocalIP(localip); printf("local IP:%s\n", localip); printf("1. 127.0.0.1 \n"); @@ -305,7 +305,7 @@ void run_test() { res = hardware->GetNumOfPlayoutDevices(pd); VALIDATE; - char dn[64] = { 0 }; + char dn[128] = { 0 }; char guid[128] = { 0 }; printf("\nPlayout devices (%d): \n", pd); for (j=0; jGetNumOfPlayoutDevices(num_pd); VALIDATE; - char dn[64] = { 0 }; + char dn[128] = { 0 }; char guid[128] = { 0 }; printf("\nPlayout devices (%d): \n", num_pd); @@ -556,7 +556,7 @@ void run_test() { res = hardware->GetNumOfRecordingDevices(num_rd); VALIDATE; - char dn[64] = { 0 }; + char dn[128] = { 0 }; char guid[128] = { 0 }; printf("Recording devices (%d): \n", num_rd);