oh indeed, but this should work

This commit is contained in:
Axel Kittenberger 2008-10-07 06:30:40 +00:00
parent f29445ebba
commit 465511bd19
1 changed files with 2 additions and 1 deletions

View File

@ -314,7 +314,8 @@ char *s_strdup(const char* src)
*/
char *realdir(const char * dir)
{
char* cs = canonicalize_file_name(dir);
char* cs = s_malloc(MAX_PATH);
cs = realpath(dir, cs);
if (cs == NULL) {
return NULL;