From ac515d5ab9cebc863d5c34eaa2183c67c6e412d5 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Mon, 20 Mar 2017 22:34:11 +0000 Subject: Now basic funcionality works. Preparing to wrap up all code --- mq_cmd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'mq_cmd.c') diff --git a/mq_cmd.c b/mq_cmd.c index 610ee2e..6bbe427 100644 --- a/mq_cmd.c +++ b/mq_cmd.c @@ -41,6 +41,7 @@ mq_cmd* mq_cmd_create(int id, char *cmd, size_t cmd_sz, char *param, size_t para char *t_cmd = malloc(cmd_sz+1); memcpy(t_cmd, cmd, cmd_sz); t_cmd[cmd_sz]=0; + char *t_param = malloc(param_sz+1); memcpy(t_param, param, param_sz); t_param[param_sz]=0; -- cgit v1.2.3