"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/osipparser2/osip_call_info.c" between
libosip2-5.0.0.tar.gz and libosip2-5.1.0.tar.gz

About: The GNU oSIP library is an implementation of SIP (RFC3261).

osip_call_info.c  (libosip2-5.0.0):osip_call_info.c  (libosip2-5.1.0)
skipping to change at line 135 skipping to change at line 135
len = strlen (call_info->element) + 2; len = strlen (call_info->element) + 2;
buf = (char *) osip_malloc (len); buf = (char *) osip_malloc (len);
if (buf == NULL) if (buf == NULL)
return OSIP_NOMEM; return OSIP_NOMEM;
*dest = buf; *dest = buf;
sprintf (buf, "%s", call_info->element); sprintf (buf, "%s", call_info->element);
{ {
osip_list_iterator_t it; osip_list_iterator_t it;
osip_generic_param_t *u_param = (osip_generic_param_t*) osip_list_get_first( osip_generic_param_t *u_param = (osip_generic_param_t *) osip_list_get_first
&call_info->gen_params, &it); (&call_info->gen_params, &it);
while (u_param != OSIP_SUCCESS) { while (u_param != OSIP_SUCCESS) {
if (u_param->gvalue == NULL) if (u_param->gvalue == NULL)
plen = strlen (u_param->gname) + 2; plen = strlen (u_param->gname) + 2;
else else
plen = strlen (u_param->gname) + strlen (u_param->gvalue) + 3; plen = strlen (u_param->gname) + strlen (u_param->gvalue) + 3;
len = len + plen; len = len + plen;
buf = (char *) osip_realloc (buf, len); buf = (char *) osip_realloc (buf, len);
tmp = buf; tmp = buf;
tmp = tmp + strlen (tmp); tmp = tmp + strlen (tmp);
if (u_param->gvalue == NULL) if (u_param->gvalue == NULL)
sprintf (tmp, ";%s", u_param->gname); sprintf (tmp, ";%s", u_param->gname);
else else
sprintf (tmp, ";%s=%s", u_param->gname, u_param->gvalue); sprintf (tmp, ";%s=%s", u_param->gname, u_param->gvalue);
u_param = (osip_generic_param_t *) osip_list_get_next(&it); u_param = (osip_generic_param_t *) osip_list_get_next (&it);
} }
} }
*dest = buf; *dest = buf;
return OSIP_SUCCESS; return OSIP_SUCCESS;
} }
/* deallocates a osip_call_info_t structure. */ /* deallocates a osip_call_info_t structure. */
/* INPUT : osip_call_info_t *call_info | call_info. */ /* INPUT : osip_call_info_t *call_info | call_info. */
void void
osip_call_info_free (osip_call_info_t * call_info) osip_call_info_free (osip_call_info_t * call_info)
 End of changes. 2 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)