From cb73a1d0c7c028a8130dd4bde48d6a2a4c965e62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 21 Jul 2013 13:16:34 +0200 Subject: [PATCH] tools/times: modified script to allow longer dataseries --- tools/times.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/times.c b/tools/times.c index d1b236d8d..23e56ffbe 100644 --- a/tools/times.c +++ b/tools/times.c @@ -15,13 +15,13 @@ int main() if (!f) return 1; - char lines[64][64] = {0}; + char lines[0xffff][64] = {0}; int n = 0; float mintime=0.0f, maxtime=0.0f; char rev[10] = {0}; char line[128] = {0}; - while (fgets(line,sizeof(line),f) && n < 64) { + while (fgets(line,sizeof(line),f) && n < (sizeof(lines)/sizeof(*lines))) { replace(line,'\r','\0'); replace(line,'\n','\0'); if (strncmp(line,"HEAD is now at ", 15) == 0) {