From: Terry Wilson Date: Fri, 20 Apr 2012 16:09:56 +0000 (+0000) Subject: OpenBSD doesn't have rawmemchr, use strchr X-Git-Tag: 1.8.13.0-rc1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe7f595e9b17b328eefcbca43c65fd562a6b6e39;p=thirdparty%2Fasterisk.git 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) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@362868 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/asterisk.c b/main/asterisk.c index 9c6da434e2..13dafc9e56 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -1313,7 +1313,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);