From d1899c8b68d9cca65dac7ead55a62744db2fcda4 Mon Sep 17 00:00:00 2001 From: smorlat Date: Fri, 13 Nov 2009 10:34:10 +0000 Subject: [PATCH] fix missing \ causing a bug with username starting with 0 (shoud be '\0'). git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@761 3f6dc0c8-ddfe-455d-9043-3cd528dc4637 --- linphone/coreapi/linphonecore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linphone/coreapi/linphonecore.c b/linphone/coreapi/linphonecore.c index 80f69648b..91d7897dc 100644 --- a/linphone/coreapi/linphonecore.c +++ b/linphone/coreapi/linphonecore.c @@ -1093,7 +1093,7 @@ static void linphone_core_grab_buddy_infos(LinphoneCore *lc, LinphoneProxyConfig if (lf->info==NULL){ char *url=linphone_friend_get_url(lf); if (linphone_core_lookup_known_proxy(lc,url)==cfg){ - if (lf->url->url->username!=NULL && lf->url->url->username[0]!='0'){ + if (lf->url->url->username!=NULL && lf->url->url->username[0]!='\0'){ BuddyLookupRequest *req; char tmp[255]; snprintf(tmp,sizeof(tmp),"sip:%s@%s",lf->url->url->username,lf->url->url->host);