]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3509 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 17 Aug 2011 14:34:56 +0000 (09:34 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 17 Aug 2011 14:34:56 +0000 (09:34 -0500)
src/switch_core_sqldb.c

index 7495b06302e290991a3aab7bc30c14f1cfda44ae..798e7c288fdafb5f9155101b8624397c3d63090d 100644 (file)
@@ -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) {