From 58ca08ec863af68a42eb3a31383e4064008ef780 Mon Sep 17 00:00:00 2001 From: ac-stef Date: Fri, 19 May 2017 23:15:18 +0200 Subject: [PATCH] fix conc thx BrutalSystem --- source/src/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/command.cpp b/source/src/command.cpp index 6f6b87f0..9b30ee7c 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -496,7 +496,7 @@ char *conc(const char **w, int n, bool space) r += wlen[i]; if(space) *r++ = ' '; } - if(space) --r; + if(space && n) --r; *r = '\0'; return res; }