From 59be847d282d54b15e6b0a1289cc2154e4b2582b Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 3 Oct 2013 11:54:58 +0200 Subject: [PATCH] inp_search_closing_paren(), rewrite --- 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 8741d16ec..0dc8bb397 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1816,9 +1816,9 @@ inp_search_for_closing_paren2(char *s) count++; if (*s == ')') count--; - s++; if (count == 0) - return s; + return s + 1; + s++; } return NULL;