Make LCC path resolution more robust

This commit is contained in:
Tim Angus 2020-08-29 20:59:52 +01:00
parent c0d797f308
commit 909ab13aeb
1 changed files with 4 additions and 1 deletions

View File

@ -38,7 +38,10 @@ void UpdatePaths( const char *lccBinary )
strncpy( basepath, lccBinary, basepathsz );
basepath[basepathsz] = 0;
p = strrchr( basepath, PATH_SEP );
p = strrchr( basepath, '/' );
if( !p )
p = strrchr( basepath, '\\' );
if( p )
{