From d574647025340b25edc17975ee3b16086d318a8c Mon Sep 17 00:00:00 2001 From: Karl Heyes Date: Fri, 31 Mar 2006 02:14:12 +0000 Subject: [PATCH] off by 1 error, although not triggered by icecast/ices svn path=/icecast/trunk/log/; revision=11073 --- src/log/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log/log.c b/src/log/log.c index d837f5eb..a58a18e8 100644 --- a/src/log/log.c +++ b/src/log/log.c @@ -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;