diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-04-05 20:36:26 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-04-05 20:36:26 +0000 |
commit | ce55d74664c13649813bc0eb12f1a86014bcdcf9 (patch) | |
tree | 469073e3a9acc7239d7d1db12f99a442be0d2dfe | |
parent | 3903e2a6cb288585d1f00ea27c471b1f33e4f470 (diff) | |
download | ldetect-ce55d74664c13649813bc0eb12f1a86014bcdcf9.tar ldetect-ce55d74664c13649813bc0eb12f1a86014bcdcf9.tar.gz ldetect-ce55d74664c13649813bc0eb12f1a86014bcdcf9.tar.bz2 ldetect-ce55d74664c13649813bc0eb12f1a86014bcdcf9.tar.xz ldetect-ce55d74664c13649813bc0eb12f1a86014bcdcf9.zip |
Oops, I screwed up the size of the elements in a realloc
-rw-r--r-- | hid.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |