From d8e2b8424fcb619e9dfafc0d7f059e023d0cf84e Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Tue, 12 Jan 2016 10:22:10 +0100 Subject: [PATCH] remove the unnecessary condition part --- ext/interbase/interbase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c index 3dfdac326f..b4c253838e 100644 --- a/ext/interbase/interbase.c +++ b/ext/interbase/interbase.c @@ -512,7 +512,7 @@ void _php_ibase_error(void) /* {{{ */ IBG(sql_code) = isc_sqlcode(IB_STATUS); - while ((s - IBG(errmsg)) < MAX_ERRMSG - (IBASE_MSGSIZE + 2) && fb_interpret(s, MAX_ERRMSG - strlen(IBG(errmsg)) - 1, &statusp)) { + while ((s - IBG(errmsg)) < MAX_ERRMSG && fb_interpret(s, MAX_ERRMSG - strlen(IBG(errmsg)) - 1, &statusp)) { strcat(IBG(errmsg), " "); s = IBG(errmsg) + strlen(IBG(errmsg)); } -- 2.40.0