1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-06-16 06:15:24 +00:00

off by 1 error, although not triggered by icecast/ices

svn path=/icecast/trunk/log/; revision=11073
This commit is contained in:
Karl Heyes 2006-03-31 02:14:12 +00:00
parent ecca4eb6bc
commit 167bf0c527

View File

@ -392,7 +392,7 @@ void log_contents (int log_id, char **_contents, unsigned int *_len)
char *ptr;
if (log_id < 0) return;
if (log_id > LOG_MAXLOGS) return; /* Bad log number */
if (log_id >= LOG_MAXLOGS) return; /* Bad log number */
_lock_logger ();
remain = loglist [log_id].total + 1;