/[osip]/osip/src/osipparser2/osip_uri.c
ViewVC logotype

Diff of /osip/src/osipparser2/osip_uri.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by aymeric, Wed Feb 11 12:23:51 2004 UTC revision 1.6 by aymeric, Sun Mar 7 15:56:17 2004 UTC
# Line 546  osip_uri_to_str (const osip_uri_t * url, Line 546  osip_uri_to_str (const osip_uri_t * url,
546    
547    len = strlen (scheme) + 1 + strlen (url->host) + 5;    len = strlen (scheme) + 1 + strlen (url->host) + 5;
548    if (url->username != NULL)    if (url->username != NULL)
549      len = len + strlen (url->username) + 10;    /* count escaped char */      len = len + (strlen (url->username) * 3) + 1;    /* count escaped char */
550    if (url->password != NULL)    if (url->password != NULL)
551      len = len + strlen (url->password) + 10;      len = len + (strlen (url->password) * 3) + 1;
552    if (url->port != NULL)    if (url->port != NULL)
553      len = len + strlen (url->port) + 3;      len = len + strlen (url->port) + 3;
554    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26