summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-04-05 20:36:26 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-04-05 20:36:26 +0000
commitce55d74664c13649813bc0eb12f1a86014bcdcf9 (patch)
tree469073e3a9acc7239d7d1db12f99a442be0d2dfe
parent3903e2a6cb288585d1f00ea27c471b1f33e4f470 (diff)
downloadldetect-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.c2
1 files changed, 1 insertions, 1 deletions
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;