From 65cecb4bc2f5ddba96df3e355b57f21218bf9009 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Fri, 31 Mar 2017 07:12:47 +1000 Subject: [PATCH] remove trailing whitespace --- deps/aha/aha.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deps/aha/aha.c b/deps/aha/aha.c index 59971cd..33ac202 100644 --- a/deps/aha/aha.c +++ b/deps/aha/aha.c @@ -101,6 +101,8 @@ char * aha(char *input) int unmangle_out_len; unmangle_ansi(input, strlen(input), &unmangle_out, &unmangle_out_len); + unmangle_out[unmangle_out_len] = '\0'; + //Begin of Conversion unsigned int c; int fc = -1; //Standard Foreground Color //IRC-Color+8 @@ -332,7 +334,7 @@ char * aha(char *input) { for (;line<80;line++) - append_output(&output, " ", &size, &outat); + append_output(&output, " ", &size, &outat); line=0; momline++; append_output(&output, "
", &size, &outat);