]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
OpenBSD doesn't have rawmemchr, use strchr
authorTerry Wilson <twilson@digium.com>
Fri, 20 Apr 2012 16:12:34 +0000 (16:12 +0000)
committerTerry Wilson <twilson@digium.com>
Fri, 20 Apr 2012 16:12:34 +0000 (16:12 +0000)
(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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@362869 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/asterisk.c

index e6c3dea16be37a9d53dacb20dad5f276a7ef6a28..a17945f5e9fe9c2a046325b40eb64e68d52ef5af 100644 (file)
@@ -1320,7 +1320,7 @@ static void *netconsole(void *vconsole)
                        /* 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);