From bba1c381f4f9862f0c9ce4afc7705ac9a624842f Mon Sep 17 00:00:00 2001 From: minux Date: Fri, 11 Apr 2014 23:23:05 -0400 Subject: [PATCH] tiny_impdef: remove artificial length restriction. --- win32/tools/tiny_impdef.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/tools/tiny_impdef.c b/win32/tools/tiny_impdef.c index 1739549..d12c502 100644 --- a/win32/tools/tiny_impdef.c +++ b/win32/tools/tiny_impdef.c @@ -226,7 +226,7 @@ found: for (l = 0;;) { if (n+1 >= n0) p = tcc_realloc(p, n0 = n0 ? n0 * 2 : 256); - if (!read_mem(fd, ptr - ref + l, p + n, 1) || ++l >= 80) { + if (!read_mem(fd, ptr - ref + l++, p + n, 1)) { tcc_free(p), p = NULL; goto the_end; }