aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alsa.c2
-rw-r--r--Alc/dsound.c2
-rw-r--r--Alc/pulseaudio.c2
-rw-r--r--Alc/winmm.c2
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);
}