[asterisk-commits] twilson: branch 10 r362869 - in /branches/10: ./ main/asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Apr 20 11:12:37 CDT 2012


Author: twilson
Date: Fri Apr 20 11:12:34 2012
New Revision: 362869

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=362869
Log:
OpenBSD doesn't have rawmemchr, use strchr

(closes issue ASTERISK-19758)
Reported by: Barry Miller
Tested by: Terry Wilson
Patches: 
  362758-diff uploaded by Barry Miller (license 5434)
........

Merged revisions 362868 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/10/   (props changed)
    branches/10/main/asterisk.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/main/asterisk.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/main/asterisk.c?view=diff&rev=362869&r1=362868&r2=362869
==============================================================================
--- branches/10/main/asterisk.c (original)
+++ branches/10/main/asterisk.c Fri Apr 20 11:12:34 2012
@@ -1320,7 +1320,7 @@
 			/* If we get this far, we have left over characters that have not been processed.
 			 * Advance to the character after the last command read by ast_cli_command_multiple_full.
 			 * We are guaranteed to have at least cmds_read NULLs */
-			while (cmds_read-- && (start_read = rawmemchr(start_read, '\0'))) {
+			while (cmds_read-- && (start_read = strchr(start_read, '\0'))) {
 				start_read++;
 			}
 			memmove(inbuf, start_read, end_buf - start_read);




More information about the asterisk-commits mailing list