Add more constness to the end_buf pointer in the netconsole

issue ASTERISK-18308
Review: https://reviewboard.asterisk.org/r/1876/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@364046 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Terry Wilson
2012-04-26 19:24:35 +00:00
parent c4ed0550e8
commit bbd95e031d

View File

@@ -1259,7 +1259,7 @@ static void *netconsole(void *vconsole)
char hostname[MAXHOSTNAMELEN] = ""; char hostname[MAXHOSTNAMELEN] = "";
char inbuf[512]; char inbuf[512];
char outbuf[512]; char outbuf[512];
const char *end_buf = inbuf + sizeof(inbuf); const char * const end_buf = inbuf + sizeof(inbuf);
char *start_read = inbuf; char *start_read = inbuf;
int res; int res;
struct pollfd fds[2]; struct pollfd fds[2];