]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_sofia: its cuter that way
authorMathieu Rene <mrene@avgs.ca>
Tue, 2 Jun 2009 00:56:14 +0000 (00:56 +0000)
committerMathieu Rene <mrene@avgs.ca>
Tue, 2 Jun 2009 00:56:14 +0000 (00:56 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13544 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index 5c5dbe72455555b60ed561105413435a65f9fbfd..d8ecb8c4dc23718d2d603452bb0768c3caad50ca 100644 (file)
@@ -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;