diff options
author | 2003-11-09 00:19:02 +0000 | |
---|---|---|
committer | 2003-11-09 00:19:02 +0000 | |
commit | 6e0737523e80cbbff18a51ecba759f13ca1c788c (patch) | |
tree | 49842488ed74088d8ae2f1929d4cf40ed9a48dc9 | |
parent | knf (diff) | |
download | wireguard-openbsd-6e0737523e80cbbff18a51ecba759f13ca1c788c.tar.xz wireguard-openbsd-6e0737523e80cbbff18a51ecba759f13ca1c788c.zip |
fix the undo record size for insert-file so we do not get an extra byte
-rw-r--r-- | usr.bin/mg/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/file.c b/usr.bin/mg/file.c index 92d6fb7a596..caf31ff5e75 100644 --- a/usr.bin/mg/file.c +++ b/usr.bin/mg/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.27 2003/11/08 19:17:29 jmc Exp $ */ +/* $OpenBSD: file.c,v 1.28 2003/11/09 00:19:02 vincent Exp $ */ /* * File commands. @@ -299,7 +299,7 @@ doneread: } } endoffile: - undo_add_insert(olp, opos, siz); + undo_add_insert(olp, opos, siz-1); /* ignore errors */ ffclose(NULL); |