[xiph-commits] r9708 - icecast/branches/kh/icecast/src

karl at svn.xiph.org karl at svn.xiph.org
Sat Aug 6 09:35:55 PDT 2005


Author: karl
Date: 2005-08-06 09:35:53 -0700 (Sat, 06 Aug 2005)
New Revision: 9708

Modified:
   icecast/branches/kh/icecast/src/connection.c
Log:
fix off by 1 error. users of oddcast DSP may show this up


Modified: icecast/branches/kh/icecast/src/connection.c
===================================================================
--- icecast/branches/kh/icecast/src/connection.c	2005-08-06 14:03:34 UTC (rev 9707)
+++ icecast/branches/kh/icecast/src/connection.c	2005-08-06 16:35:53 UTC (rev 9708)
@@ -448,7 +448,7 @@
     {
         client_queue_t *node = *node_ref;
         client_t *client = node->client;
-        int len = PER_CLIENT_REFBUF_SIZE - node->offset;
+        int len = PER_CLIENT_REFBUF_SIZE - 1 - node->offset;
         char *buf = client->refbuf->data + node->offset;
 
         if (len > 0)



More information about the commits mailing list