From 718c85a545824bae04819f99543278acedf50faf Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 28 Dec 2014 20:01:44 +0100 Subject: [PATCH] inpcom.c, inp_remove_ws(), don't insert whitespace at end of line --- src/frontend/inpcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index c73b02e29..b792862ab 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -2228,10 +2228,10 @@ inp_remove_ws(char *s) if (isspace(*curr)) { curr = skip_ws(curr); if (is_expression) { - if (*curr != '=' && !is_arith_char(*curr) && *curr != ',') + if (*curr != '\0' && *curr != '=' && !is_arith_char(*curr) && *curr != ',') big_buff[big_buff_index++] = ' '; } else { - if (*curr != '=') + if (*curr != '\0' && *curr != '=') big_buff[big_buff_index++] = ' '; } }