From 9cc4e0c976ca214bbedfb4e2cd2614757f89a221 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 19 Jan 2008 19:06:25 +0000 Subject: [PATCH] * Fix to bug in S_FileExtension (Tr3B) --- code/client/snd_codec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/client/snd_codec.c b/code/client/snd_codec.c index 41456ce2..0483e8df 100644 --- a/code/client/snd_codec.c +++ b/code/client/snd_codec.c @@ -41,7 +41,10 @@ static char *S_FileExtension(const char *fni) while(*fn != '/' && fn != fni) { if(*fn == '.') + { eptr = fn; + break; + } fn--; }