]> git.xonotic.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)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 3 Apr 2012 17:04:06 +0000 (19:04 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11783 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=318d016de32da5ed57d9347a43692d09f1877509

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;