diff --git a/src/launcher.c b/src/launcher.c index 0ea7ec9..459bd4e 100644 --- a/src/launcher.c +++ b/src/launcher.c @@ -33,7 +33,7 @@ #include "wmfs.h" #include -#define PATH_MAX 4095 +#define PATHMAX 4095 void launcher_execute(Launcher launcher) @@ -49,7 +49,7 @@ launcher_execute(Launcher launcher) char *searchpath; char *start, *end; Bool stop, found; - char currentpath[PATH_MAX]; + char currentpath[PATHMAX]; Bool lastwastab = False; int tabhits = 0; int searchhits = 0; @@ -125,7 +125,7 @@ launcher_execute(Launcher launcher) if (end == NULL) { stop = True; - strncpy(currentpath, start, PATH_MAX); + strncpy(currentpath, start, PATHMAX); } else {