From: Paul Tinsley Date: Fri, 20 Oct 2006 03:33:49 +0000 (+0000) Subject: Fix for broken trunk commit, setting contact_str size to the size of sql variable... X-Git-Tag: v1.0-beta1~1872 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaf4409b454a22200565947d046f56fb14811bae;p=thirdparty%2Ffreeswitch.git Fix for broken trunk commit, setting contact_str size to the size of sql variable it's stored in [contact VARCHAR(1024)] + 1 for the null. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3113 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 61477660bd..24e9638f56 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -2669,7 +2669,7 @@ static uint8_t handle_register(nua_t *nua, switch_event_t *s_event; char *from_user = (char *) from->a_url->url_user; char *from_host = (char *) from->a_url->url_host; - char *contact_str[256] = ""; + char contact_str[1025] = ""; char buf[512]; char *passwd = NULL; uint8_t stale = 0, ret = 0, forbidden = 0;