Commit 00c94a61 authored by Henrique Silva's avatar Henrique Silva

examples/client.c: add null termination to the corrected string

parent 88557e35
......@@ -176,6 +176,7 @@ bpm_client_err_e parse_subopt (char *subopts, char *mount_opts[], char* name, ch
{
case CHANNEL:
memcpy(corr_name+len-1, value, strlen(value));
memcpy(corr_name+len, "\0", 1);
break;
case VALUE:
temp_value = value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment