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
This commit is contained in:
henrika@google.com 2011-07-13 08:11:23 +00:00
parent c4b939cb61
commit 4edf9ac149

View File

@ -217,7 +217,7 @@ void run_test() {
strcpy(ip, "127.0.0.1"); strcpy(ip, "127.0.0.1");
#else #else
char localip[64]; char localip[64];
netw->GetLocalIP(localip, 64); netw->GetLocalIP(localip);
printf("local IP:%s\n", localip); printf("local IP:%s\n", localip);
printf("1. 127.0.0.1 \n"); printf("1. 127.0.0.1 \n");
@ -305,7 +305,7 @@ void run_test() {
res = hardware->GetNumOfPlayoutDevices(pd); res = hardware->GetNumOfPlayoutDevices(pd);
VALIDATE; VALIDATE;
char dn[64] = { 0 }; char dn[128] = { 0 };
char guid[128] = { 0 }; char guid[128] = { 0 };
printf("\nPlayout devices (%d): \n", pd); printf("\nPlayout devices (%d): \n", pd);
for (j=0; j<pd; ++j) { for (j=0; j<pd; ++j) {
@ -534,7 +534,7 @@ void run_test() {
res = hardware->GetNumOfPlayoutDevices(num_pd); res = hardware->GetNumOfPlayoutDevices(num_pd);
VALIDATE; VALIDATE;
char dn[64] = { 0 }; char dn[128] = { 0 };
char guid[128] = { 0 }; char guid[128] = { 0 };
printf("\nPlayout devices (%d): \n", num_pd); printf("\nPlayout devices (%d): \n", num_pd);
@ -556,7 +556,7 @@ void run_test() {
res = hardware->GetNumOfRecordingDevices(num_rd); res = hardware->GetNumOfRecordingDevices(num_rd);
VALIDATE; VALIDATE;
char dn[64] = { 0 }; char dn[128] = { 0 };
char guid[128] = { 0 }; char guid[128] = { 0 };
printf("Recording devices (%d): \n", num_rd); printf("Recording devices (%d): \n", num_rd);