From ce55d74664c13649813bc0eb12f1a86014bcdcf9 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Sun, 5 Apr 2009 20:36:26 +0000 Subject: Oops, I screwed up the size of the elements in a realloc --- hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hid.c b/hid.c index d98bc8f..2103c00 100644 --- a/hid.c +++ b/hid.c @@ -70,7 +70,7 @@ static void add_entry(struct hid_entries *entry_list, char *name, char *module) struct hid_entry *new_entries; - new_entries = realloc(entry_list->entries, (entry_list->nb+1)*sizeof(entry_list->entries)); + new_entries = realloc(entry_list->entries, (entry_list->nb+1)*sizeof(*(entry_list->entries))); if (new_entries != NULL) { new_entries[entry_list->nb].module = module; new_entries[entry_list->nb].text = name; -- cgit v1.2.1