From 5faafa4acae8cca7d535beb680fcdfa465044d6f Mon Sep 17 00:00:00 2001 From: Terry Wilson Date: Thu, 26 Apr 2012 19:30:55 +0000 Subject: [PATCH] Add more constness to the end_buf pointer in the netconsole issue ASTERISK-18308 Review: https://reviewboard.asterisk.org/r/1876/ ........ Merged revisions 364046 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@364047 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/asterisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/asterisk.c b/main/asterisk.c index a17945f5e9..11cbca59b9 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -1266,7 +1266,7 @@ static void *netconsole(void *vconsole) char hostname[MAXHOSTNAMELEN] = ""; char inbuf[512]; char outbuf[512]; - const char *end_buf = inbuf + sizeof(inbuf); + const char * const end_buf = inbuf + sizeof(inbuf); char *start_read = inbuf; int res; struct pollfd fds[2]; -- 2.47.2