From dc703fd4975453a4adf707ea41065fc9b18358d8 Mon Sep 17 00:00:00 2001 From: Nedko Arnaudov Date: Sat, 5 Dec 2009 17:55:13 +0200 Subject: [PATCH] daemon: fix memory corruption --- daemon/cmd_load_studio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/cmd_load_studio.c b/daemon/cmd_load_studio.c index 7bc095a6..4e472b47 100644 --- a/daemon/cmd_load_studio.c +++ b/daemon/cmd_load_studio.c @@ -975,7 +975,7 @@ bool ladish_command_load_studio(void * call_ptr, struct ladish_cqueue * queue_pt goto fail_free_name; } - cmd_ptr = ladish_command_new(sizeof(struct ladish_command)); + cmd_ptr = ladish_command_new(sizeof(struct ladish_command_load_studio)); if (cmd_ptr == NULL) { log_error("ladish_command_new() failed."); -- 2.11.4.GIT