diff --git a/chat_system.c b/chat_system.c index 70ee1f7..d9e25fd 100644 --- a/chat_system.c +++ b/chat_system.c @@ -45,6 +45,7 @@ static char *encapsulate_quote(char *in) { out[i++] = '\\'; } out[i] = in[j]; + out[i+1] = '\0'; j++; } return strdup(out);