mirror of
https://git.proxmox.com/git/pmg-log-tracker
synced 2025-04-29 00:53:45 +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;
|
//return NULL;
|
||||||
//}
|
//}
|
||||||
|
|
||||||
for (i = 0; i <= MAX_LOGFILES; i++) {
|
for (i = 0; i < MAX_LOGFILES; i++) {
|
||||||
gettimeofday(&tv, NULL);
|
gettimeofday(&tv, NULL);
|
||||||
tv.tv_sec -= 3600*24*i;
|
tv.tv_sec -= 3600*24*i;
|
||||||
ltime = localtime (&tv.tv_sec);
|
ltime = localtime (&tv.tv_sec);
|
||||||
|
Loading…
Reference in New Issue
Block a user