do not access element outside array bounds

This commit is contained in:
Dietmar Maurer 2017-09-12 12:16:34 +02:00
parent d488e03bb0
commit 952866a348

View File

@ -1383,7 +1383,7 @@ parser_new ()
//return NULL;
//}
for (i = 0; i <= MAX_LOGFILES; i++) {
for (i = 0; i < MAX_LOGFILES; i++) {
gettimeofday(&tv, NULL);
tv.tv_sec -= 3600*24*i;
ltime = localtime (&tv.tv_sec);