Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/wscons Double size of WSDISPLAYIO_SFONT name buffer ...



details:   https://anonhg.NetBSD.org/src/rev/522362a05e11
branches:  trunk
changeset: 821135:522362a05e11
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Wed Jan 25 15:40:31 2017 +0000

description:
Double size of WSDISPLAYIO_SFONT name buffer to 32 characters.

We've got a font known as "DejaVu Sans Mono", and that is 17 bytes
by the time it's NUL terminated.

diffstat:

 sys/dev/wscons/wsdisplay.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d637337e2090 -r 522362a05e11 sys/dev/wscons/wsdisplay.c
--- a/sys/dev/wscons/wsdisplay.c        Wed Jan 25 14:53:43 2017 +0000
+++ b/sys/dev/wscons/wsdisplay.c        Wed Jan 25 15:40:31 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsdisplay.c,v 1.140 2016/07/07 06:55:42 msaitoh Exp $ */
+/* $NetBSD: wsdisplay.c,v 1.141 2017/01/25 15:40:31 jakllsch Exp $ */
 
 /*
  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsdisplay.c,v 1.140 2016/07/07 06:55:42 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsdisplay.c,v 1.141 2017/01/25 15:40:31 jakllsch Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_wsdisplay_compat.h"
@@ -1223,7 +1223,7 @@
        u_long cmd, void *data, int flag, struct lwp *l)
 {
        int error;
-       char namebuf[16];
+       char namebuf[32];
        struct wsdisplay_font fd;
 #ifdef WSDISPLAY_SCROLLSUPPORT
        struct wsdisplay_scroll_data *ksdp, *usdp;



Home | Main Index | Thread Index | Old Index