[Asterisk-cvs] asterisk/pbx pbx_wilcalu.c,1.17,1.18

markster at lists.digium.com markster at lists.digium.com
Sun Oct 31 18:14:31 CST 2004


Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv16778/pbx

Modified Files:
	pbx_wilcalu.c 
Log Message:
Misc code fixes (bug #2762)


Index: pbx_wilcalu.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_wilcalu.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- pbx_wilcalu.c	8 Aug 2004 17:15:02 -0000	1.17
+++ pbx_wilcalu.c	31 Oct 2004 23:17:11 -0000	1.18
@@ -82,10 +82,10 @@
 		fds[0].events = POLLIN;
 		poll(fds, 1, -1);
 		bytes=read(fd,buf,256);
-		buf[(int)bytes]=0;
 
 		if(bytes>0){
 			int x;
+			buf[(int)bytes]=0;
 			ast_log(LOG_DEBUG, "WilCalu : Read Buf %s\n",buf);
 			sendbufptr=sendbuf;
 			for(x=0; lastbuf[x]!=0 && x<257; x++);




More information about the svn-commits mailing list