- StripExtension(filename, wavename);
- strcat(wavename, ".wav");
- sfx = S_PrecacheSound (wavename, false, false, false);
+ FS_StripExtension(filename, wavename, namelen);
+ strlcat(wavename, ".wav", namelen);
+ sfx = S_PrecacheSound (wavename, false, false);