Increase the temp buffer sizes to construct device names with

This commit is contained in:
Chris Robinson 2010-05-31 19:04:41 -07:00
parent 2205f91e5f
commit e98f1205e5
4 changed files with 4 additions and 4 deletions

View File

@ -221,7 +221,7 @@ static DevMap *probe_devices(snd_pcm_stream_t stream, ALuint *count)
snd_ctl_card_info_t *info;
snd_pcm_info_t *pcminfo;
DevMap *DevList;
char name[128];
char name[1024];
psnd_ctl_card_info_malloc(&info);
psnd_pcm_info_malloc(&pcminfo);

View File

@ -115,7 +115,7 @@ static BOOL CALLBACK DSoundEnumDevices(LPGUID guid, LPCSTR desc, LPCSTR drvname,
if(guid)
{
char str[128];
char str[1024];
void *temp;
temp = realloc(DeviceList, sizeof(DevMap) * (NumDevices+1));

View File

@ -423,7 +423,7 @@ static void sink_device_callback(pa_context *context, const pa_sink_info *info,
temp = realloc(allDevNameMap, (numDevNames+1) * sizeof(*allDevNameMap));
if(temp)
{
char str[256];
char str[1024];
snprintf(str, sizeof(str), "%s via PulseAudio", info->description);
allDevNameMap = temp;

View File

@ -69,7 +69,7 @@ static void ProbeDevices(void)
CaptureDeviceList[i] = NULL;
if(waveInGetDevCaps(i, &WaveInCaps, sizeof(WAVEINCAPS)) == MMSYSERR_NOERROR)
{
char name[128];
char name[1024];
snprintf(name, sizeof(name), "%s via WaveIn", WaveInCaps.szPname);
CaptureDeviceList[i] = strdup(name);
}