oops, fixing linux

This commit is contained in:
Axel Kittenberger 2012-02-15 16:47:04 +01:00
parent 5ce47d47a3
commit e252496a4e
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ get_realpath(const char * rpath) {
// uses c-library to get the absolute path // uses c-library to get the absolute path
#ifdef __GLIBC__ #ifdef __GLIBC__
// in case of GLIBC the task is easy. // in case of GLIBC the task is easy.
return realpath(path, NULL); return realpath(rpath, NULL);
#else #else
# warning having to use old style realpath() # warning having to use old style realpath()
// otherwise less so and requires PATH_MAX limit. // otherwise less so and requires PATH_MAX limit.