1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05: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 e00aafda3a
commit d574647025

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;