fixes, cosmetics
[apps/madmutt.git] / lib-mx / mx.c
index 5d735c6..bebaa34 100644 (file)
@@ -53,7 +53,7 @@ static mx_t const *mxfmts[] = {
 
 static int dotlock_file(const char *path, int retry)
 {
-    char lockfile[PATH_MAX];
+    char lockfile[_POSIX_PATH_MAX];
     snprintf(lockfile, sizeof(lockfile), "%s.lock", path);
 
     if (lockfile_create(lockfile, retry ? 1 : 0, 0)) {
@@ -65,7 +65,7 @@ static int dotlock_file(const char *path, int retry)
 
 static int undotlock_file (const char *path)
 {
-    char lockfile[PATH_MAX];
+    char lockfile[_POSIX_PATH_MAX];
     snprintf(lockfile, sizeof(lockfile), "%s.lock", path);
     return lockfile_remove(lockfile);
 }