Make LCC path resolution more robust
This commit is contained in:
1 parent
c0d797f308
commit
909ab13aeb
1 file changed
+4
-1
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user