sal_impl.c: fix 200 OK header, proposed by Christian Spielberger

This commit is contained in:
Gautier Pelloux-Prayer 2016-02-10 14:00:57 +01:00
parent 3df1f98d88
commit 2ccfd093d3

View file

@ -1033,7 +1033,7 @@ static void make_supported_header(Sal *sal){
const char *tag=(const char*)it->data;
size_t taglen=strlen(tag);
if (alltags==NULL || (written+taglen+1>=buflen)) alltags=ms_realloc(alltags,(buflen=buflen*2));
snprintf(alltags+written,buflen-written,it->next ? "%s, " : "%s",tag);
written+=snprintf(alltags+written,buflen-written,it->next ? "%s, " : "%s",tag);
}
if (alltags){
sal->supported=belle_sip_header_create("Supported",alltags);