Don't limit output wave filename size

This commit is contained in:
Chris Robinson
2008-01-11 15:27:56 -08:00
parent 893ecf1af2
commit 978764cb6b
+2 -3
View File
@@ -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;