aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-01-11 15:27:56 -0800
committerChris Robinson <[email protected]>2008-01-11 15:27:56 -0800
commit978764cb6b84d78187badf9d8d5b7177d047654f (patch)
tree639f2c19eed2f69d09ae2e872f2e8b35c2339ac2
parent893ecf1af2ba7a31d83c85e4bb081dae1911fa3b (diff)
Don't limit output wave filename size
-rw-r--r--Alc/wave.c5
1 files changed, 2 insertions, 3 deletions
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;