diff --git a/src/lfile.c b/src/lfile.c index d3ac36f..43074f5 100644 --- a/src/lfile.c +++ b/src/lfile.c @@ -22,13 +22,13 @@ #include "log.h" #include "lfile.h" +static char lephisto_base[PATH_MAX] = "\0"; /**< Store Lephisto's base path. */ /** * @fn char* lfile_basePath(void) * * @brief Get Lephisto's base path (for saves etc..). * @return The base path to Lephisto. */ -static char lephisto_base[128] = "\0"; /**< Store Lephisto's base path. */ char* lfile_basePath(void) { char* home; @@ -80,7 +80,7 @@ int lfile_dirMakeExist(const char* path, ...) { stat(file, &buf); if(!S_ISDIR(buf.st_mode)) if(mkdir(file, S_IRWXU | S_IRWXG | S_IRWXO) < 0) { - WARN("Dir '%s' does not exist and unable to create", path); + WARN("Dir '%s' does not exist and unable to create", file); return -1; } #else