[xdebug-dev] xdebug xdebug/xdebug_set.c - Allocate one byte more because of safety.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Thu, 19 Oct 2006 22:45:19 +0200

Date: Thu Oct 19 22:45:19 CEST 2006
User: Derick Rethans
Directory: xdebug

Log Message:
[0.05]
- Allocate one byte more because of safety.

Modified files:
           xdebug/xdebug_set.c (version: 1.3)

[FILE: /xdebug/xdebug_set.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- xdebug/xdebug_set.c:1.2 Sat Oct 07 21:10:32 2006 GMT
+++ xdebug/xdebug_set.c Thu Oct 19 18:45:19 2006 GMT
@@ -15,7 +15,7 @@
    | Authors: Derick Rethans <derick[@]xdebug.org> |
    +----------------------------------------------------------------------+
  */
-/* $Id: cvstemp,v 1.2 2006/10/07 23:10:32 derick Exp $ */
+/* $Id: cvstemp,v 1.3 2006/10/19 20:45:19 derick Exp $ */
 
 #include <stdlib.h>
 #include <math.h>
@@ -27,7 +27,7 @@
 
         tmp = calloc(1, sizeof(xdebug_set));
         tmp->size = size;
- size = ceil((size + 7) / 8);
+ size = ceil((size + 7) / 8) + 1;
         tmp->setinfo = calloc(1, size);
 
         return tmp;
Received on Thu Oct 19 2006 - 22:45:24 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST