From: Mathieu Rene Date: Tue, 2 Jun 2009 00:56:14 +0000 (+0000) Subject: mod_sofia: its cuter that way X-Git-Tag: v1.0.4~663 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1fa59a2c0a9d4bd04a45d20600136c3a142f9fb;p=thirdparty%2Ffreeswitch.git mod_sofia: its cuter that way git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13544 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 5c5dbe7245..d8ecb8c4dc 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -3976,15 +3976,15 @@ int sofia_glue_get_user_host(char *in, char **user, char **host) /* Clean out the host part of any suffix */ if ((p = strchr(h, ':'))) { - *p = 0; + *p = '\0'; } if ((p = strchr(h, ';'))) { - *p = 0; + *p = '\0'; } if ((p = strchr(h, ' '))) { - *p = 0; + *p = '\0'; } *user = u;