Misc code fixes (bug #2762)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4131 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-10-31 23:17:11 +00:00
parent 18780395de
commit bec04aa020
3 changed files with 8 additions and 2 deletions

View File

@@ -82,10 +82,10 @@ static void *autodial(void *ignore)
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++);