diff options
author | Chris Robinson <[email protected]> | 2008-01-11 15:27:56 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-01-11 15:27:56 -0800 |
commit | 978764cb6b84d78187badf9d8d5b7177d047654f (patch) | |
tree | 639f2c19eed2f69d09ae2e872f2e8b35c2339ac2 /Alc/wave.c | |
parent | 893ecf1af2ba7a31d83c85e4bb081dae1911fa3b (diff) |
Don't limit output wave filename size
Diffstat (limited to 'Alc/wave.c')
-rw-r--r-- | Alc/wave.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |