[sr-dev] git:master: tm: wrap around expression adjusting length for To/From headers

Daniel-Constantin Mierla miconda at gmail.com
Fri Apr 26 19:59:00 CEST 2013


Module: sip-router
Branch: master
Commit: aefea5477dc7878d5e818628e04ddcb088fd2858
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=aefea5477dc7878d5e818628e04ddcb088fd2858

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri Apr 26 19:55:43 2013 +0200

tm: wrap around expression adjusting length for To/From headers

- applies for local requests

---

 modules/tm/t_msgbuilder.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/tm/t_msgbuilder.c b/modules/tm/t_msgbuilder.c
index 2beb918..c947d38 100644
--- a/modules/tm/t_msgbuilder.c
+++ b/modules/tm/t_msgbuilder.c
@@ -1399,7 +1399,7 @@ static inline char* print_to(char* w, dlg_t* dialog, struct cell* t)
 {
 	t->to.s = w;
 	t->to.len = TO_LEN + dialog->rem_uri.len + CRLF_LEN
-		+ (dialog->rem_uri.s[0]!='<')?2:0;
+		+ ((dialog->rem_uri.s[0]!='<')?2:0);
 
 	memapp(w, TO, TO_LEN);
 	if(dialog->rem_uri.s[0]!='<') memapp(w, "<", 1);
@@ -1424,7 +1424,7 @@ static inline char* print_from(char* w, dlg_t* dialog, struct cell* t)
 {
 	t->from.s = w;
 	t->from.len = FROM_LEN + dialog->loc_uri.len + CRLF_LEN
-		+ (dialog->loc_uri.s[0]!='<')?2:0;
+		+ ((dialog->loc_uri.s[0]!='<')?2:0);
 
 	memapp(w, FROM, FROM_LEN);
 	if(dialog->loc_uri.s[0]!='<') memapp(w, "<", 1);




More information about the sr-dev mailing list