aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;