shithub: choc

Download patch

ref: cb16b45086bd3fcfdd7040c7fbed4f08d14537ac
parent: 2ea8fd11ec5da77ba66b24c0c2cbee892e803904
author: Simon Howard <fraggle@gmail.com>
date: Sun Mar 30 16:21:25 EDT 2014

sound: Fix compile when using libsamplerate.

The change in commit 62b5c6028.. broke the compile.

--- a/src/i_sdlsound.c
+++ b/src/i_sdlsound.c
@@ -767,7 +767,7 @@
             fflush(stdout);
         }
 
-        GetSfxLumpName(&sounds[i], namebuf, sizeof(buf));
+        GetSfxLumpName(&sounds[i], namebuf, sizeof(namebuf));
 
         sounds[i].lumpnum = W_CheckNumForName(namebuf);