Browse code

- fixed len calculation for user@host (thanks th Richard)

Bogdan-Andrei Iancu authored on 24/05/2004 10:50:43
Showing 1 changed files
... ...
@@ -471,7 +471,7 @@ static inline int build_userhost(struct sip_uri *uri, str *uh, int flg)
471 471
 	uh->s[uh->len++] = '@';
472 472
 	memcpy( uh->s+uh->len, uri->host.s, uri->host.len);
473 473
 	uh->len += uri->host.len;
474
-	uh->s[uh->len++] = 0;
474
+	uh->s[uh->len] = 0;
475 475
 	return 0;
476 476
 }
477 477