Skip to content

Commit af1781d

Browse files
committed
fixed a SEGV because of INT_MAX
1 parent b01c2d9 commit af1781d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

superlib/get_next_line.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ char *get_stash(int fd, char *stash)
3939
char *get_next_line(int fd)
4040
{
4141
char *line;
42-
static char *stash[INT_MAX];
42+
static char *stash[8192];
4343

4444
if (fd < 0 || fd == 1 || fd == 2 || BUFFER_SIZE <= 0)
4545
return (NULL);

0 commit comments

Comments
 (0)