X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mx%2Fmx.c;h=bebaa34522898c94b218b8faf299eaecaddce194;hp=5d735c6d944d3ed007a29adf79b548139d9791ce;hb=193714be08fc91ae77ddd401c1273d1b0d42845d;hpb=4c86444ebf9fc4a8231424c0cdd832eb10abdb35 diff --git a/lib-mx/mx.c b/lib-mx/mx.c index 5d735c6..bebaa34 100644 --- a/lib-mx/mx.c +++ b/lib-mx/mx.c @@ -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); }