tweak previous

This commit is contained in:
Timothee Besset 2017-02-25 15:26:17 -06:00
parent 3248d4adc5
commit ed15d78e2b

View file

@ -153,7 +153,7 @@ void ExtractFileName( const char *path, char *dest ){
//
// back up until a \ or the start
//
while ( src != path && *( src - 1 ) != '/'
while ( src > path && *( src - 1 ) != '/'
&& *( src - 1 ) != '\\' )
src--;