Commit d5746470 authored by Karl Heyes's avatar Karl Heyes

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

svn path=/icecast/trunk/log/; revision=11073
parent e00aafda
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment