From: <st...@us...> - 2003-06-11 20:13:40
|
Update of /cvsroot/iaxclient/iaxclient/lib/libiax2/src In directory sc8-pr-cvs1:/tmp/cvs-serv24940 Modified Files: iax.c Log Message: fix bug #1 in IAX2 support. Index: iax.c =================================================================== RCS file: /cvsroot/iaxclient/iaxclient/lib/libiax2/src/iax.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- iax.c 6 Jun 2003 19:59:45 -0000 1.3 +++ iax.c 11 Jun 2003 20:13:35 -0000 1.4 @@ -2279,7 +2279,7 @@ struct ast_iax2_mini_hdr *mh = (struct ast_iax2_mini_hdr *)buf; struct iax_session *session; - buf[len - 1] = '\0'; + /* THIS IS BAD: buf[len - 1] = '\0'; */ if (ntohs(fh->scallno) & IAX_FLAG_FULL) { /* Full size header */ if (len < sizeof(struct ast_iax2_full_hdr)) { |