VC2k5 fix: don't keep converting char* -> const char* -> char*
This was SVN commit r1184.
This commit is contained in:
parent
0868b2ee6c
commit
a1bd91d198
@ -449,7 +449,7 @@ static int tree_lookup(const char* _c_path, const Loc** const loc = 0, Dir** con
|
|||||||
Dir* cur_dir = &vfs_root;
|
Dir* cur_dir = &vfs_root;
|
||||||
if(start_dir)
|
if(start_dir)
|
||||||
cur_dir = *dir;
|
cur_dir = *dir;
|
||||||
const char* cur_component = v_path;
|
char* cur_component = v_path;
|
||||||
|
|
||||||
// subdirectory traverse logic
|
// subdirectory traverse logic
|
||||||
// valid:
|
// valid:
|
||||||
@ -469,7 +469,7 @@ static int tree_lookup(const char* _c_path, const Loc** const loc = 0, Dir** con
|
|||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
// "extract" cur_component string (0-terminate by replacing '/')
|
// "extract" cur_component string (0-terminate by replacing '/')
|
||||||
const char* slash = strchr(cur_component, '/');
|
char* slash = strchr(cur_component, '/');
|
||||||
if(slash)
|
if(slash)
|
||||||
*slash = 0;
|
*slash = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user