memcpy->memmove, from maintainer Ryan Freeman
This commit is contained in:
parent
51de039e92
commit
ecc8e708ee
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.66 2015/04/02 17:46:57 sebastia Exp $
|
||||
# $OpenBSD: Makefile,v 1.67 2015/12/03 09:18:15 sthen Exp $
|
||||
|
||||
COMMENT = sophisticated scripter based on Tcl/Tk
|
||||
|
||||
VERSION = 5.45
|
||||
DISTNAME = expect${VERSION}
|
||||
PKGNAME = expect-${VERSION}
|
||||
REVISION = 2
|
||||
REVISION = 3
|
||||
SHARED_LIBS = expect545 0.0
|
||||
CATEGORIES = lang
|
||||
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=expect/}
|
||||
|
@ -1,6 +1,15 @@
|
||||
$OpenBSD: patch-exp_inter_c,v 1.1 2015/04/02 17:46:57 sebastia Exp $
|
||||
$OpenBSD: patch-exp_inter_c,v 1.2 2015/12/03 09:18:16 sthen Exp $
|
||||
--- exp_inter.c.orig Tue Aug 31 15:20:27 2010
|
||||
+++ exp_inter.c Wed Apr 1 15:46:05 2015
|
||||
+++ exp_inter.c Tue Nov 17 10:45:17 2015
|
||||
@@ -1564,7 +1564,7 @@ Exp_InteractObjCmd(
|
||||
ustring = u->input.buffer;
|
||||
if (skip) {
|
||||
size -= skip;
|
||||
- memcpy(ustring, ustring + skip, size * sizeof(Tcl_UniChar));
|
||||
+ memmove(ustring, ustring + skip, size * sizeof(Tcl_UniChar));
|
||||
}
|
||||
}
|
||||
u->input.use = size;
|
||||
@@ -1824,12 +1824,12 @@ got_action:
|
||||
skip += matchLen;
|
||||
size -= skip;
|
||||
|
Loading…
Reference in New Issue
Block a user