summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-12-01 23:05:18 +0000
committertedu <tedu@openbsd.org>2014-12-01 23:05:18 +0000
commit71226638216261825f87475f071b9efbbd8a1a4c (patch)
tree2dc3fb91e7e89cbe8eb780dc6b03ec0dd0b9d5d3
parentAnother fix for insertion from Balazs Kezes. On insertion, size the line (diff)
downloadwireguard-openbsd-71226638216261825f87475f071b9efbbd8a1a4c.tar.xz
wireguard-openbsd-71226638216261825f87475f071b9efbbd8a1a4c.zip
memcpy abort found an overlap. from dsp at 2f30. ok deraadt
-rw-r--r--sbin/isakmpd/ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/ui.c b/sbin/isakmpd/ui.c
index 218783be539..bb5f8c0a3ee 100644
--- a/sbin/isakmpd/ui.c
+++ b/sbin/isakmpd/ui.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ui.c,v 1.55 2014/10/09 02:38:56 deraadt Exp $ */
+/* $OpenBSD: ui.c,v 1.56 2014/12/01 23:05:18 tedu Exp $ */
/* $EOM: ui.c,v 1.43 2000/10/05 09:25:12 niklas Exp $ */
/*
@@ -621,7 +621,7 @@ ui_handler(void)
if (*p == '\n') {
*p = '\0';
ui_handle_command(buf);
- memcpy(buf, p + 1, n);
+ memmove(buf, p + 1, n);
p = buf;
resid = sz - n;
continue;