# HG changeset patch # User Sebastien Decugis # Date 1280367519 -32400 # Node ID 66f58cecf3cdcf7e2aa6d1ce5b1cee1e3bd141c8 # Parent 76a896740f945022d5cbaa484665298d3ff48e9d Fix invalid array size (found by valgrind) diff -r 76a896740f94 -r 66f58cecf3cd libfreeDiameter/dictionary.c --- 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 */