[xiph-commits] r11073 - icecast/trunk/log

karl at svn.xiph.org karl at svn.xiph.org
Thu Mar 30 18:14:15 PST 2006


Author: karl
Date: 2006-03-30 18:14:12 -0800 (Thu, 30 Mar 2006)
New Revision: 11073

Modified:
   icecast/trunk/log/log.c
Log:
off by 1 error, although not triggered by icecast/ices


Modified: icecast/trunk/log/log.c
===================================================================
--- icecast/trunk/log/log.c	2006-03-30 22:48:19 UTC (rev 11072)
+++ icecast/trunk/log/log.c	2006-03-31 02:14:12 UTC (rev 11073)
@@ -392,7 +392,7 @@
     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;



More information about the commits mailing list