]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix out of buffer access in snd_3dras
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 1 Apr 2012 13:45:58 +0000 (13:45 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 1 Apr 2012 13:45:58 +0000 (13:45 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11783 d7cf8633-e32d-0410-b094-e92efae38249

snd_3dras.c

index 140c98fb754f8bd1329b3352b9c92a58f7f7abc1..0619796a670b433167eb7f12017d0f0dafeadaec 100644 (file)
@@ -598,7 +598,7 @@ int S_LoadSound(sfx_t *sfx, int complain){
        void* decoder_ptr=NULL;
        if(ras_version>0 && ras_dll){
 
-               fileext[4]=0; //Terminator
+               fileext[3]=0; //Terminator
                // See if already loaded
                if (sfx->rasptr) return true;