mirror of
https://git.proxmox.com/git/pmg-log-tracker
synced 2025-04-28 16:51:47 +00:00
do not access element outside array bounds
This commit is contained in:
parent
d488e03bb0
commit
952866a348
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user