mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[LOG2LINES]
Use PATH_MAX instead of MAX_PATH. Patch by tower. svn path=/trunk/; revision=58764
This commit is contained in:
parent
0d2f933c3c
commit
38ddc8955e
4 changed files with 16 additions and 16 deletions
|
@ -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);
|
||||
|
|
|
@ -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 <opt_dir>
|
||||
char opt_logFile[MAX_PATH]; // -l|L <opt_logFile>
|
||||
char opt_dir[PATH_MAX]; // -d <opt_dir>
|
||||
char opt_logFile[PATH_MAX]; // -l|L <opt_logFile>
|
||||
char *opt_mod = NULL; // -mod for opt_logFile
|
||||
char opt_7z[MAX_PATH]; // -z <opt_7z>
|
||||
char opt_7z[PATH_MAX]; // -z <opt_7z>
|
||||
char opt_scanned[LINESIZE]; // all scanned options
|
||||
char opt_SourcesPath[LINESIZE]; //sources path
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue