Skip to content

Commit 4712285

Browse files
committed
Disable new dangerous check introduced in several previous commits
It seems that it does not provide anything useful while, say, Klever can fail with unclear errors due to it (it is another story why these errors are unclear).
1 parent 1e5d189 commit 4712285

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cif.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,10 +1000,13 @@ static char *concat(const char *first, ...)
10001000

10011001
/* Indeed, this function is used in different places, not only to concatenate directory and file names, but anyway
10021002
its result should be pretty limited. */
1003+
/* This check seems to be to dangerous. Anyway, later something should fail if the concatenated string will be
1004+
inappropriate.
10031005
if (length >= PATH_MAX) {
10041006
fprintf(stderr, "Too long concatenated string.\n");
10051007
exit(-1);
10061008
}
1009+
*/
10071010

10081011
/* Allocate enough memory to store resulted string. */
10091012
res = malloc(length + 1);

0 commit comments

Comments
 (0)