From dcea66e6e6282c7fb786d2a0dae204fdb0ef627f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 22 Oct 2003 07:23:50 +0000 Subject: [PATCH] fix GetExtension --- stepmania/src/RageUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageUtil.cpp b/stepmania/src/RageUtil.cpp index 0df150c24f..8c7700e95f 100644 --- a/stepmania/src/RageUtil.cpp +++ b/stepmania/src/RageUtil.cpp @@ -321,7 +321,7 @@ CString GetExtension( CString sPath ) if( pos == sPath.npos ) return ""; - unsigned slash = sPath.find( '/', slash ); + unsigned slash = sPath.find( '/', pos ); if( slash != sPath.npos ) return ""; /* rare: path/dir.ext/fn */