summaryrefslogtreecommitdiff
path: root/sbin/isakmpd
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-12-01 23:05:19 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-12-01 23:05:19 +0000
commit955a8d67a0947973b8000ca170faf90e75cc6c11 (patch)
treea53faa75264e873e0d759b60a9153ce207dcbc7b /sbin/isakmpd
parent19bb2de641de5e8b9a21c51181f145709c49d731 (diff)
memcpy abort found an overlap. from dsp at 2f30. ok deraadt
Diffstat (limited to 'sbin/isakmpd')
-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;