commit 7190d24468f632afebb9b24a170c42261eaf5f8a
parent ec1984881459f23f8b5e26a9427d12d2f10b8780
Author: Louis Burda <quent.burda@gmail.com>
Date: Sat, 8 Jul 2023 22:05:35 +0200
fixup! Fix reading out-of-bounds entries + improvements
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tquery.c b/tquery.c
@@ -403,7 +403,7 @@ input(void)
default:
if (c < 32 || c >= 127)
continue;
- if (inputlen < sizeof(inputbuf) - 1)
+ if (inputlen < INPUT_BUFSIZ - 1)
inputbuf[inputlen++] = (char) c;
reload = true;
dirty = true;