From 8f86e5e6ebcdf9beaae894ef76b0f0aeeb8ecd61 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 28 Jul 2006 21:46:03 +0000 Subject: 4KB buffer on the stack, and would you like fries with that? --- sys/arch/mvme88k/dev/vx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch/mvme88k/dev/vx.c') diff --git a/sys/arch/mvme88k/dev/vx.c b/sys/arch/mvme88k/dev/vx.c index c9848b5a58a..d0620f06559 100644 --- a/sys/arch/mvme88k/dev/vx.c +++ b/sys/arch/mvme88k/dev/vx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vx.c,v 1.37 2006/05/08 14:36:10 miod Exp $ */ +/* $OpenBSD: vx.c,v 1.38 2006/07/28 21:46:02 miod Exp $ */ /* * Copyright (c) 1999 Steve Murphree, Jr. * All rights reserved. @@ -866,7 +866,7 @@ vxstart(struct tty *tp) struct wring *wp; int cc, port, unit, s, cnt, i; u_short get, put; - char buffer[WRING_BUF_SIZE]; + char buffer[256]; dev = tp->t_dev; port = VX_PORT(dev); @@ -887,7 +887,7 @@ vxstart(struct tty *tp) put = wp->put; cc = tp->t_outq.c_cc; while (cc > 0) { - cnt = min(WRING_BUF_SIZE, cc); + cnt = min(sizeof buffer, cc); cnt = q_to_b(&tp->t_outq, buffer, cnt); buffer[cnt] = 0; for (i = 0; i < cnt; i++) { -- cgit v1.2.3