cedric pushed a commit to branch master.

commit 4a4ab2bb48bb59d6393cf3ce0fa5ade0df18195a
Author: Cedric BAIL <[email protected]>
Date:   Thu Apr 4 15:12:40 2013 +0900

    eet: round above.
---
 src/lib/eet/eet_lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eet/eet_lib.c b/src/lib/eet/eet_lib.c
index 613b83c..ceb8847 100644
--- a/src/lib/eet/eet_lib.c
+++ b/src/lib/eet/eet_lib.c
@@ -946,7 +946,7 @@ eet_internal_read2(Eet_File *ef)
        if (eet_test_close(!ef->ed->all_hash, ef))
          return NULL;
 
-       ef->ed->all_allocated = calloc(1, (num_dictionary_entries >> 8) * 
sizeof (unsigned char));
+       ef->ed->all_allocated = calloc(1, ((num_dictionary_entries >> 8) + 1) * 
sizeof (unsigned char));
        if (eet_test_close(!ef->ed->all_allocated, ef))
          return NULL;
 

-- 

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html

Reply via email to