diff --git a/telephony/iaxclient/Makefile b/telephony/iaxclient/Makefile index b8572e238d9..a4e3085fe77 100644 --- a/telephony/iaxclient/Makefile +++ b/telephony/iaxclient/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.32 2016/04/04 16:09:10 naddy Exp $ +# $OpenBSD: Makefile,v 1.33 2017/01/02 12:56:06 sebastia Exp $ COMMENT-main= IAX client library COMMENT-tcl= IAX client library, tcl bindings @@ -6,7 +6,7 @@ COMMENT-iaxcomm=IAX softphone DISTNAME= iaxclient-2.1beta3 PKGNAME-main= ${DISTNAME} -REVISION-main= 15 +REVISION-main= 16 PKGNAME-tcl= ${DISTNAME:S/iaxclient/iaxclient-tcl/} REVISION-tcl= 17 PKGNAME-iaxcomm= iaxcomm-1.1.0 diff --git a/telephony/iaxclient/patches/patch-lib_spandsp_plc_c b/telephony/iaxclient/patches/patch-lib_spandsp_plc_c new file mode 100644 index 00000000000..f1f105f1e41 --- /dev/null +++ b/telephony/iaxclient/patches/patch-lib_spandsp_plc_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-lib_spandsp_plc_c,v 1.1 2017/01/02 12:56:06 sebastia Exp $ + +memcpy -> memmove + +--- lib/spandsp/plc.c.orig Mon Jan 2 12:29:58 2017 ++++ lib/spandsp/plc.c Mon Jan 2 12:33:28 2017 +@@ -99,7 +99,7 @@ static void normalise_history(plc_state_t *s) + if (s->buf_ptr == 0) + return; + memcpy(tmp, s->history, sizeof(int16_t)*s->buf_ptr); +- memcpy(s->history, s->history + s->buf_ptr, sizeof(int16_t)*(PLC_HISTORY_LEN - s->buf_ptr)); ++ memmove(s->history, s->history + s->buf_ptr, sizeof(int16_t)*(PLC_HISTORY_LEN - s->buf_ptr)); + memcpy(s->history + PLC_HISTORY_LEN - s->buf_ptr, tmp, sizeof(int16_t)*s->buf_ptr); + s->buf_ptr = 0; + }