diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-07-28 21:46:03 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-07-28 21:46:03 +0000 |
commit | 8f86e5e6ebcdf9beaae894ef76b0f0aeeb8ecd61 (patch) | |
tree | bec5065724fa28fb5e1c242dd896226cf2464f11 /sys/arch | |
parent | 1a1d097ab13e4fcd67ac151932f15e8db83b7108 (diff) |
4KB buffer on the stack, and would you like fries with that?
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/mvme88k/dev/vx.c | 6 |
1 files changed, 3 insertions, 3 deletions
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++) { |