diff options
author | 2014-12-01 23:05:18 +0000 | |
---|---|---|
committer | 2014-12-01 23:05:18 +0000 | |
commit | 71226638216261825f87475f071b9efbbd8a1a4c (patch) | |
tree | 2dc3fb91e7e89cbe8eb780dc6b03ec0dd0b9d5d3 | |
parent | Another fix for insertion from Balazs Kezes. On insertion, size the line (diff) | |
download | wireguard-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.c | 4 |
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; |