[asterisk-commits] twilson: branch 1.8 r362868 - /branches/1.8/main/asterisk.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Apr 20 11:09:59 CDT 2012
Author: twilson
Date: Fri Apr 20 11:09:56 2012
New Revision: 362868
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=362868
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)
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=362868&r1=362867&r2=362868
==============================================================================
--- branches/1.8/main/asterisk.c (original)
+++ branches/1.8/main/asterisk.c Fri Apr 20 11:09:56 2012
@@ -1313,7 +1313,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