From 978764cb6b84d78187badf9d8d5b7177d047654f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 11 Jan 2008 15:27:56 -0800 Subject: Don't limit output wave filename size --- Alc/wave.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Alc') diff --git a/Alc/wave.c b/Alc/wave.c index e08b0bc1..de4c87db 100644 --- a/Alc/wave.c +++ b/Alc/wave.c @@ -110,11 +110,10 @@ static ALCboolean wave_open_playback(ALCdevice *device, const ALCchar *deviceNam wave_data *data; ALuint channels; ALuint bits; - char fname[64]; + const char *fname; int i; - strncpy(fname, GetConfigValue("wave", "file", ""), sizeof(fname)-1); - fname[sizeof(fname)-1] = 0; + fname = GetConfigValue("wave", "file", ""); if(!fname[0]) return ALC_FALSE; -- cgit v1.2.3