]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10672 [core] Fix event url-encoding buffer size
authorRoman Sukhov <romsuhov@ringme.ru>
Thu, 14 Sep 2017 15:05:59 +0000 (18:05 +0300)
committerRoman Sukhov <romsuhov@ringme.ru>
Thu, 14 Sep 2017 15:05:59 +0000 (18:05 +0300)
src/switch_event.c

index 7911d155d49147465fb2d7f000161b23e3772ad2..c38b1194c1e6fca3ba0a48d47dab2767aebcc37e 100644 (file)
@@ -2559,7 +2559,7 @@ SWITCH_DECLARE(char *) switch_event_build_param_string(switch_event_t *event, co
 
                                }
 
-                               new_len = (strlen((char *) var) * 3) + 1;
+                               new_len = (strlen((char *) val) * 3) + 1;
                                if (encode_len < new_len) {
                                        char *tmp;