summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2015-10-31 11:59:47 +0000
committerjasper <jasper@openbsd.org>2015-10-31 11:59:47 +0000
commit2883e03b9ea7e132a1cd7eb9adaaae64be1de558 (patch)
tree22bdc65076d721650a6d0d8bdae7ca8cfab38d63
parentInvoke the _HIDDEN() sigprocmask label rather than the public one. (diff)
downloadwireguard-openbsd-2883e03b9ea7e132a1cd7eb9adaaae64be1de558.tar.xz
wireguard-openbsd-2883e03b9ea7e132a1cd7eb9adaaae64be1de558.zip
mark *Completions* buffer as read-only
ok lum@
-rw-r--r--usr.bin/mg/echo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mg/echo.c b/usr.bin/mg/echo.c
index 510efec6549..105e6b5e7ed 100644
--- a/usr.bin/mg/echo.c
+++ b/usr.bin/mg/echo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: echo.c,v 1.60 2015/09/29 02:07:49 guenther Exp $ */
+/* $OpenBSD: echo.c,v 1.61 2015/10/31 11:59:47 jasper Exp $ */
/* This file is in the public domain. */
@@ -643,6 +643,7 @@ complt_list(int flags, char *buf, int cpos)
bp = bfind("*Completions*", TRUE);
if (bclear(bp) == FALSE)
return (FALSE);
+ bp->b_flag |= BFREADONLY;
/*
* First get the list of objects. This list may contain only