=== modified file 'driver-ti.c' --- driver-ti.c 2008-11-24 22:15:43 +0000 +++ driver-ti.c 2008-11-24 22:06:14 +0000 @@ -46,7 +46,7 @@ static struct trie_node *new_node_key(termkey_type type, termkey_keysym sym, int modmask, int modset) { - struct trie_node_key *n = malloc(sizeof(*n)); + struct trie_node_key *n = malloc(sizeof(struct trie_node_key)); if(!n) return NULL; @@ -62,7 +62,7 @@ static struct trie_node *new_node_arr(unsigned char min, unsigned char max) { - struct trie_node_arr *n = malloc(sizeof(*n) + ((int)max-min+1) * sizeof(n->arr[0])); + struct trie_node_arr *n = malloc(sizeof(struct trie_node_arr) + ((int)max-min+1) * sizeof(void*)); if(!n) return NULL;