From: Anthony Minessale Date: Wed, 17 Aug 2011 14:34:56 +0000 (-0500) Subject: FS-3509 --resolve X-Git-Tag: v1.2-rc1~51^2~266^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7e651a5e84f269b6015631032febbaa9a6ff905;p=thirdparty%2Ffreeswitch.git FS-3509 --resolve --- diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c index 7495b06302..798e7c288f 100644 --- a/src/switch_core_sqldb.c +++ b/src/switch_core_sqldb.c @@ -996,7 +996,7 @@ static void *SWITCH_THREAD_FUNC switch_core_sql_thread(switch_thread_t *thread, trans = 1; } - if (len + newlen > sql_len) { + if (len + newlen + 1 > sql_len) { int new_mlen = len + newlen + 10240; if (new_mlen < runtime.max_sql_buffer_len) {