From e98f1205e547422764ef2bdce2c47ac54998f6d6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 31 May 2010 19:04:41 -0700 Subject: Increase the temp buffer sizes to construct device names with --- Alc/alsa.c | 2 +- Alc/dsound.c | 2 +- Alc/pulseaudio.c | 2 +- Alc/winmm.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Alc/alsa.c b/Alc/alsa.c index 0e9e5603..75d02686 100644 --- a/Alc/alsa.c +++ b/Alc/alsa.c @@ -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); diff --git a/Alc/dsound.c b/Alc/dsound.c index f1229fdd..e4f11f75 100644 --- a/Alc/dsound.c +++ b/Alc/dsound.c @@ -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)); diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index db9e06af..27709384 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -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; diff --git a/Alc/winmm.c b/Alc/winmm.c index 6d43c734..747a250b 100644 --- a/Alc/winmm.c +++ b/Alc/winmm.c @@ -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); } -- cgit v1.2.3