diff --git a/reactos/tools/log2lines/cache.c b/reactos/tools/log2lines/cache.c index 5f255308425..31ad78bd0f7 100644 --- a/reactos/tools/log2lines/cache.c +++ b/reactos/tools/log2lines/cache.c @@ -26,7 +26,7 @@ unpack_iso(char *dir, char *iso) { char Line[LINESIZE]; int res = 0; - char iso_tmp[MAX_PATH]; + char iso_tmp[PATH_MAX]; int iso_copied = 0; FILE *fiso; @@ -78,9 +78,9 @@ int check_directory(int force) { char Line[LINESIZE]; - char freeldr_path[MAX_PATH]; - char iso_path[MAX_PATH]; - char compressed_7z_path[MAX_PATH]; + char freeldr_path[PATH_MAX]; + char iso_path[PATH_MAX]; + char compressed_7z_path[PATH_MAX]; char *check_iso; char *check_dir; @@ -141,8 +141,8 @@ check_directory(int force) return 1; } } - cache_name = malloc(MAX_PATH); - tmp_name = malloc(MAX_PATH); + cache_name = malloc(PATH_MAX); + tmp_name = malloc(PATH_MAX); strcpy(cache_name, opt_dir); if (cleanable(opt_dir)) strcat(cache_name, ALT_PATH_STR CACHEFILE); diff --git a/reactos/tools/log2lines/options.c b/reactos/tools/log2lines/options.c index efa77e44d18..5bdefbc69b3 100644 --- a/reactos/tools/log2lines/options.c +++ b/reactos/tools/log2lines/options.c @@ -39,10 +39,10 @@ int opt_undo = 0; // -u int opt_redo = 0; // -U char *opt_Revision = NULL; // -R int opt_Revision_check = 0; // -R check -char opt_dir[MAX_PATH]; // -d -char opt_logFile[MAX_PATH]; // -l|L +char opt_dir[PATH_MAX]; // -d +char opt_logFile[PATH_MAX]; // -l|L char *opt_mod = NULL; // -mod for opt_logFile -char opt_7z[MAX_PATH]; // -z +char opt_7z[PATH_MAX]; // -z char opt_scanned[LINESIZE]; // all scanned options char opt_SourcesPath[LINESIZE]; //sources path diff --git a/reactos/tools/log2lines/revision.c b/reactos/tools/log2lines/revision.c index ae5fa17da37..82ecb28d2c3 100644 --- a/reactos/tools/log2lines/revision.c +++ b/reactos/tools/log2lines/revision.c @@ -154,8 +154,8 @@ int regscan(FILE *outFile) { int res = 0; - char logname[MAX_PATH]; - char inxname[MAX_PATH]; + char logname[PATH_MAX]; + char inxname[PATH_MAX]; char line[LINESIZE + 1]; char line2[LINESIZE + 1]; FILE *flog = NULL; @@ -189,8 +189,8 @@ regscan(FILE *outFile) if (!res) { char flag[2]; - char path[MAX_PATH]; - char path2[MAX_PATH]; + char path[PATH_MAX]; + char path2[PATH_MAX]; int wflag = 0; clilog(outFile, "Regression candidates:\n"); while (( pos = findRev(finx, &r) )) @@ -257,8 +257,8 @@ int updateSvnlog(void) { int res = 0; - char logname[MAX_PATH]; - char inxname[MAX_PATH]; + char logname[PATH_MAX]; + char inxname[PATH_MAX]; char line[LINESIZE + 1]; FILE *flog = NULL; FILE *finx = NULL; diff --git a/reactos/tools/log2lines/util.c b/reactos/tools/log2lines/util.c index 19e6342934a..b9f223f25eb 100644 --- a/reactos/tools/log2lines/util.c +++ b/reactos/tools/log2lines/util.c @@ -95,7 +95,7 @@ static FILE * rfopen(char *path, char *mode) { FILE *f = NULL; - char tmppath[MAX_PATH]; // Don't modify const strings + char tmppath[PATH_MAX]; // Don't modify const strings strcpy(tmppath, path); f = fopen(tmppath, mode);