Trying to finally silence Coverity CID 28785.
This commit is contained in:
parent
33303ab694
commit
35ee3eeda5
@ -111,10 +111,12 @@ int Compare_2_files(char *adr1, char *adr2, char *adrc, int flag)
|
|||||||
}
|
}
|
||||||
strcpy(a, Ftypetxt(s1.st_mode, 1));
|
strcpy(a, Ftypetxt(s1.st_mode, 1));
|
||||||
strcat(a, " ");
|
strcat(a, " ");
|
||||||
if(adrc[0])
|
if(adrc[0]) {
|
||||||
|
if(strlen(a) + strlen(adrc) < 4096)
|
||||||
strcat(a, adrc);
|
strcat(a, adrc);
|
||||||
else
|
} else {
|
||||||
strcat(a, ".");
|
strcat(a, ".");
|
||||||
|
}
|
||||||
|
|
||||||
ret= lstat(adr2, &s2);
|
ret= lstat(adr2, &s2);
|
||||||
if(ret==-1) {
|
if(ret==-1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user