Silenced gcc warning about printf target buffer
This commit is contained in:
parent
22aa52ba17
commit
9cfd466b8f
@ -298,8 +298,10 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
strcpy(adr1, argv[1]);
|
strcpy(adr1, argv[1]);
|
||||||
strcpy(adrc, argv[1]+strlen(argv[2]));
|
strcpy(adrc, argv[1]+strlen(argv[2]));
|
||||||
sprintf(adr2, "%s%s%s",
|
strcpy(adr2, argv[3]);
|
||||||
argv[3], (adrc[0]=='/' || adrc[0]==0 ? "" : "/"), adrc);
|
if(adrc[0] == '/' || adrc[0] == 0)
|
||||||
|
strcat(adr2, "/");
|
||||||
|
strcat(adr2, adrc);
|
||||||
|
|
||||||
ret= Compare_2_files(adr1, adr2, adrc, (with_ctime<<1));
|
ret= Compare_2_files(adr1, adr2, adrc, (with_ctime<<1));
|
||||||
exit(ret<=0);
|
exit(ret<=0);
|
||||||
|
Loading…
Reference in New Issue
Block a user