Add const qualification; fixes error on gcc 4.4.

llvm-svn: 107499
This commit is contained in:
Eli Friedman 2010-07-02 19:15:50 +00:00
parent e537ddbdb4
commit feaeebfb5d
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ FileSpec::ResolveUsername (const char *src_path, char *dst_path, size_t dst_len)
return len;
}
char *first_slash = ::strchr (src_path, '/');
const char *first_slash = ::strchr (src_path, '/');
char remainder[PATH_MAX];
if (first_slash == NULL)