summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlum <lum@openbsd.org>2015-12-23 19:37:34 +0000
committerlum <lum@openbsd.org>2015-12-23 19:37:34 +0000
commita0f1c91217a2ad381b539598fa2c1d2bf11b620a (patch)
tree8e24b68154eea225da61d33c50763f03722a51b3
parentexpand message between processes to 2048 bytes. Andre Smagin found (diff)
downloadwireguard-openbsd-a0f1c91217a2ad381b539598fa2c1d2bf11b620a.tar.xz
wireguard-openbsd-a0f1c91217a2ad381b539598fa2c1d2bf11b620a.zip
Do undo.
-rw-r--r--usr.bin/mg/theo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mg/theo.c b/usr.bin/mg/theo.c
index c0ab94172f1..542e91ce4cf 100644
--- a/usr.bin/mg/theo.c
+++ b/usr.bin/mg/theo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: theo.c,v 1.149 2015/11/14 21:24:11 sthen Exp $ */
+/* $OpenBSD: theo.c,v 1.150 2015/12/23 19:37:34 lum Exp $ */
/*
* Copyright (c) 2002 Artur Grabowski <art@openbsd.org>
* All rights reserved.
@@ -209,12 +209,14 @@ theo_analyze(int f, int n)
str = talk[arc4random_uniform(ntalk)];
len = strlen(str);
+ undo_boundary_enable(FFRAND, 0);
enewline(FFRAND, 2);
while (len--)
linsert(1, *str++);
enewline(FFRAND, 2);
+ undo_boundary_enable(FFRAND, 1);
return (TRUE);
}