gnu: emacs-consult: Fix grammar.
[jackhill/guix/guix.git] / gnu / packages / patches / glibc-hurd-gettyent.patch
CommitLineData
1c4268e4
JN
1From d6d2caef3e44d0713bb6625f697a1ec615abae70 Mon Sep 17 00:00:00 2001
2From: "Jan (janneke) Nieuwenhuizen" <janneke@gnu.org>
3Date: Sun, 5 Apr 2020 16:29:54 +0200
4Subject: [PATCH 4/4] misc: Choose a longer arbitrary line length.
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9This allows running specifying a `getty' in the GNU Guix store.
10
11* misc/getttyent.c (MAXLINELENGTH): Use 512 (instead of 100) as
12another "great" arbitrary limit.
13
14Co-Authored-By: Ludovic Courtès <ludo@gnu.org>
15---
16 misc/getttyent.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/misc/getttyent.c b/misc/getttyent.c
20index 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--
332.26.0
34