[pve-devel] r5688 - pve-cluster/trunk/data/src

svn-commits at proxmox.com svn-commits at proxmox.com
Mon Mar 14 06:02:23 CET 2011


Author: dietmar
Date: 2011-03-14 06:02:23 +0100 (Mon, 14 Mar 2011)
New Revision: 5688

Modified:
   pve-cluster/trunk/data/src/status.c
Log:
fix boundary


Modified: pve-cluster/trunk/data/src/status.c
===================================================================
--- pve-cluster/trunk/data/src/status.c	2011-03-11 14:20:10 UTC (rev 5687)
+++ pve-cluster/trunk/data/src/status.c	2011-03-14 05:02:23 UTC (rev 5688)
@@ -1077,7 +1077,7 @@
 	g_return_val_if_fail(data != NULL, FALSE);
 	g_return_val_if_fail(len > 0, FALSE);
 	g_return_val_if_fail(len < 4096, FALSE);
-	g_return_val_if_fail(data[len] == 0, FALSE);
+	g_return_val_if_fail(data[len-1] == 0, FALSE);
 
 	rrdentry_t *entry;
 	if ((entry = (rrdentry_t *)g_hash_table_lookup(rrdhash, key))) {



More information about the pve-devel mailing list