From: Terry Wilson Date: Thu, 26 Apr 2012 19:24:35 +0000 (+0000) Subject: Add more constness to the end_buf pointer in the netconsole X-Git-Tag: 1.8.13.0-rc1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbd95e031db2977c2a56a8a4b64af7095f667456;p=thirdparty%2Fasterisk.git 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 --- diff --git a/main/asterisk.c b/main/asterisk.c index 13dafc9e56..5276922522 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -1259,7 +1259,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];