summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Cambus <fcambus@cvs.openbsd.org>2017-01-11 08:21:34 +0000
committerFrederic Cambus <fcambus@cvs.openbsd.org>2017-01-11 08:21:34 +0000
commitf3e26651df8c474cb30f04626c2980c4bba465c7 (patch)
tree6f424d6e1c81593421761b5a17f71c0b072c7f36
parent98792846952c191df6155eaff650d93bd825a7c7 (diff)
Use explicit_bzero() to wipe copybuffer when logging out of the console.
OK deraadt@
-rw-r--r--sys/dev/wscons/wsdisplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c
index 131c511fc79..cb7bde50593 100644
--- a/sys/dev/wscons/wsdisplay.c
+++ b/sys/dev/wscons/wsdisplay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsdisplay.c,v 1.125 2016/11/07 00:26:33 guenther Exp $ */
+/* $OpenBSD: wsdisplay.c,v 1.126 2017/01/11 08:21:33 fcambus Exp $ */
/* $NetBSD: wsdisplay.c,v 1.82 2005/02/27 00:27:52 perry Exp $ */
/*
@@ -935,7 +935,7 @@ wsdisplayclose(dev_t dev, int flag, int mode, struct proc *p)
#ifdef HAVE_WSMOUSED_SUPPORT
/* remove the selection at logout */
if (sc->sc_copybuffer != NULL)
- bzero(sc->sc_copybuffer, sc->sc_copybuffer_size);
+ explicit_bzero(sc->sc_copybuffer, sc->sc_copybuffer_size);
CLR(sc->sc_flags, SC_PASTE_AVAIL);
#endif