[sr-dev] git:kamailio_3.0: core:sr_module. c increased number of pre-allocated static buffers in get_str_fparam()

Marius Zbihlei marius.zbihlei at 1and1.ro
Tue May 4 16:13:16 CEST 2010


Module: sip-router
Branch: kamailio_3.0
Commit: 4fd1e775f701d79d1d7f5e75bd7ff621739914b5
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4fd1e775f701d79d1d7f5e75bd7ff621739914b5

Author: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Date:   Tue May  4 17:06:47 2010 +0300

core:sr_module.c increased number of pre-allocated static buffers in get_str_fparam()

Increased the number from 3 to 6 as more are needed by modules like carrierroute when avp's are used as function parameters
(Bug reported by Ole Kaas)

---

 sr_module.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sr_module.c b/sr_module.c
index d5dc322..351d7fa 100644
--- a/sr_module.c
+++ b/sr_module.c
@@ -1415,7 +1415,7 @@ int fixup_str_2(void** param, int param_no)
 
 
 #define PV_PRINT_BUF_SIZE  1024
-#define PV_PRINT_BUF_NO    3
+#define PV_PRINT_BUF_NO    6
 /** Get the function parameter value as string.
  *  @return  0 - Success
  *          -1 - Cannot get value




More information about the sr-dev mailing list