From d7324ce513463e8692845d8d469b9425a3866c8d Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 10 Sep 2017 23:05:22 +1000 Subject: [PATCH] Fix wrapping :) --- utils/magiedit/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/magiedit/main.c b/utils/magiedit/main.c index 5ac26eb..02c6c91 100644 --- a/utils/magiedit/main.c +++ b/utils/magiedit/main.c @@ -1015,7 +1015,7 @@ int main(int argc, char **argv) } quote_lines[quote_line_count] = (char *)malloc(i - start_line + 6); memset(buffer, 0, 256); - strncpy(buffer, &unwrapped_quote[start_line], j + 1); + strncpy(buffer, &unwrapped_quote[start_line], j); sprintf(quote_lines[quote_line_count], " %c> %s", msgto[0], buffer); j = 0; start_line = i+1;