[asterisk-commits] twilson: branch 1.8 r364046 - /branches/1.8/main/asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Apr 26 14:24:49 CDT 2012


Author: twilson
Date: Thu Apr 26 14:24:35 2012
New Revision: 364046

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=364046
Log:
Add more constness to the end_buf pointer in the netconsole

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

Modified:
    branches/1.8/main/asterisk.c

Modified: branches/1.8/main/asterisk.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/asterisk.c?view=diff&rev=364046&r1=364045&r2=364046
==============================================================================
--- branches/1.8/main/asterisk.c (original)
+++ branches/1.8/main/asterisk.c Thu Apr 26 14:24:35 2012
@@ -1259,7 +1259,7 @@
 	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];




More information about the asterisk-commits mailing list