commit 7fd0d921407ab77e67947a3e8ecd96686db25a6e
parent 881f7b4aa699291ae22db304dc9e259cb8331b58
Author: Mattias Andrée <maandree@kth.se>
Date: Thu, 7 Dec 2017 17:55:46 +0100
blind-peek-head: fix minor compile-time bug
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/blind-peek-head.c b/src/blind-peek-head.c
@@ -115,7 +115,7 @@ main(int argc, char *argv[])
usleep(50000);
beginning:
last_len = len;
- len = peek(buf, n);
+ len = peek(buf, sizeof(buf));
p = memchr(buf, '\n', len);
if (p && len >= (size_t)(++p - buf) + ELEMENTSOF(magic))
goto ready;