changeset 446:66f58cecf3cd

Fix invalid array size (found by valgrind)
author Sebastien Decugis <sdecugis@nict.go.jp>
date Thu, 29 Jul 2010 10:38:39 +0900
parents 76a896740f94
children 097bae83b07a
files libfreeDiameter/dictionary.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libfreeDiameter/dictionary.c	Thu Jul 29 09:54:57 2010 +0900
+++ b/libfreeDiameter/dictionary.c	Thu Jul 29 10:38:39 2010 +0900
@@ -140,7 +140,7 @@
 	
 	struct dict_object	dict_cmd_error;		/* Special command object for answers with the 'E' bit set */
 	
-	int			dict_count[DICT_TYPE_MAX]; /* Number of objects of each type */
+	int			dict_count[DICT_TYPE_MAX + 1]; /* Number of objects of each type */
 };
 
 /* Forward declarations of dump functions */
"Welcome to our mercurial repository"