From c743205286dcf610ca5bff056944924af54563dd Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Thu, 13 Mar 2014 20:07:52 +0000
Subject: [PATCH] [Fix] Minor correctness change in lfile.c

---
 src/lfile.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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