Commit | Line | Data |
---|---|---|
1c4268e4 JN |
1 | From d6d2caef3e44d0713bb6625f697a1ec615abae70 Mon Sep 17 00:00:00 2001 |
2 | From: "Jan (janneke) Nieuwenhuizen" <janneke@gnu.org> | |
3 | Date: Sun, 5 Apr 2020 16:29:54 +0200 | |
4 | Subject: [PATCH 4/4] misc: Choose a longer arbitrary line length. | |
5 | MIME-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ||
9 | This allows running specifying a `getty' in the GNU Guix store. | |
10 | ||
11 | * misc/getttyent.c (MAXLINELENGTH): Use 512 (instead of 100) as | |
12 | another "great" arbitrary limit. | |
13 | ||
14 | Co-Authored-By: Ludovic Courtès <ludo@gnu.org> | |
15 | --- | |
16 | misc/getttyent.c | 2 +- | |
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
18 | ||
19 | diff --git a/misc/getttyent.c b/misc/getttyent.c | |
20 | index 92d92b026f..508d296291 100644 | |
21 | --- a/misc/getttyent.c | |
22 | +++ b/misc/getttyent.c | |
23 | @@ -66,7 +66,7 @@ __getttyent (void) | |
24 | static struct ttyent tty; | |
25 | int c; | |
26 | char *p; | |
27 | -#define MAXLINELENGTH 100 | |
28 | +#define MAXLINELENGTH 512 | |
29 | static char line[MAXLINELENGTH]; | |
30 | ||
31 | if (!tf && !__setttyent()) | |
32 | -- | |
33 | 2.26.0 | |
34 |