diff options
author | FreeArtMan <dos21h@gmail.com> | 2017-03-20 22:34:11 +0000 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2017-03-20 22:34:11 +0000 |
commit | ac515d5ab9cebc863d5c34eaa2183c67c6e412d5 (patch) | |
tree | b9ba872bfe35cd9832121bdab80fade9d961c096 /mq_cmd.c | |
parent | 3402dd6ff49bb1567def4e7bfba1f877ffbd0786 (diff) | |
download | agni-ac515d5ab9cebc863d5c34eaa2183c67c6e412d5.tar.gz agni-ac515d5ab9cebc863d5c34eaa2183c67c6e412d5.zip |
Now basic funcionality works. Preparing to wrap up all code
Diffstat (limited to 'mq_cmd.c')
-rw-r--r-- | mq_cmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |