summaryrefslogtreecommitdiff
path: root/graphics/radiance/patches/patch-src_rt_tty.c
blob: 4b027609b75b34e84fa8659177ee3da3433d2657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-src_rt_tty.c,v 1.1 2012/12/27 00:23:21 dholland Exp $

Pass around input buffer lengths.

--- src/rt/tty.c~	2004-04-10 02:54:10.000000000 +0000
+++ src/rt/tty.c
@@ -85,13 +85,14 @@ getch(void)					/* get a character in ra
 static void
 ttyin(			/* read a line in raw mode */
 	char  *buf,
+	size_t max,
 	char  *prompt
 )
 {
 
 	if (prompt != NULL)
 		(*ttydev->comout)(prompt);
-	editline(buf, getch, ttydev->comout);
+	editline(buf, max, getch, ttydev->comout);
 }