From 97b99304ee11cf82235d35c8e4772e8ef3fc2420 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 24 Feb 2015 20:58:28 +0100 Subject: Another important lesson. --- src/kernel/fs/iso9660.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/fs/iso9660.c b/src/kernel/fs/iso9660.c index 505f279..f1b8a90 100644 --- a/src/kernel/fs/iso9660.c +++ b/src/kernel/fs/iso9660.c @@ -208,7 +208,7 @@ bool iso9660_dir_walk(fs_node_ptr n, const char* search_for, struct fs_node *nod if (strncmp(name, search_for, len) == 0) { // Found it ! - iso9660_node_t *n = (iso9660_node_t*)malloc(sizeof(iso9660_node_t*)); + iso9660_node_t *n = (iso9660_node_t*)malloc(sizeof(iso9660_node_t)); if (n == 0) return false; memcpy(&n->dr, dr, sizeof(iso9660_dr_t)); -- cgit v1.2.3