blob: cdfe6c5ed4f49b98e354851052371cdf3d0533d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-src_rt_vga.c,v 1.1 2012/12/27 00:23:21 dholland Exp $
Pass around input buffer lengths.
--- src/rt/vga.c~ 2004-04-10 02:54:10.000000000 +0000
+++ src/rt/vga.c
@@ -187,6 +187,7 @@ vga_errout(
static void
vga_comin( /* get input line from console */
char *buf,
+ size_t max,
char *prompt
)
{
@@ -194,7 +195,7 @@ vga_comin( /* get input line from cons
if (prompt != NULL)
_outtext(prompt);
- editline(buf, getch, vga_comout);
+ editline(buf, max, getch, vga_comout);
vga_driver.inpready = kbhit();
}
|