From 0d89741851ceb46ea8baa78d8fb9f68e92e5d32e Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Mon, 20 Mar 2017 12:57:26 +1000 Subject: [PATCH] Fix missing null terminator --- chat_system.c | 1 + 1 file changed, 1 insertion(+) 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);