Browse code

mtree: avoid char array access over the size

(cherry picked from commit 24718a4f0a7579abf9f32967cce2b86e5973cc6d)
(cherry picked from commit 2d1dc7cfcde0410e44a8d53849c319c9d234a7b3)

Daniel-Constantin Mierla authored on 16/06/2017 09:49:28
Showing 1 changed files
... ...
@@ -62,7 +62,7 @@ unsigned char _mt_char_table[MT_CHAR_TABLE_SIZE];
62 62
 void mt_char_table_init(void)
63 63
 {
64 64
 	unsigned int i;
65
-	for(i=0; i<=MT_CHAR_TABLE_SIZE; i++) {
65
+	for(i=0; i<MT_CHAR_TABLE_SIZE; i++) {
66 66
 		_mt_char_table[i] = MT_CHAR_TABLE_NOTSET;
67 67
 	}
68 68
 	for(i=0; i<mt_char_list.len; i++) {