diff options
Diffstat (limited to 'mq_cmd.c')
-rw-r--r-- | mq_cmd.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -198,7 +198,9 @@ int mq_cmd_param(mq_cmd *cmd, char **param, size_t *sz) } strt = i; *param = cmd->buf+strt; - *sz = cmd->sz - strt+1;//BUG MUAHAHA + + //buffer allways ends with zero, no worries + *sz = strlen(*param); return 0; } |