]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add more constness to the end_buf pointer in the netconsole
authorTerry Wilson <twilson@digium.com>
Thu, 26 Apr 2012 19:24:35 +0000 (19:24 +0000)
committerTerry Wilson <twilson@digium.com>
Thu, 26 Apr 2012 19:24:35 +0000 (19:24 +0000)
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

main/asterisk.c

index 13dafc9e569481651a4adaea259ba5d769abc2f1..52769225227a525ef7c91f4a4e8afb073e82ee94 100644 (file)
@@ -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];