From 7ca997bf7efdca16416b22488ebc7b70c419fd44 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Sun, 19 Jun 2022 23:42:04 +0000 Subject: [PATCH] ndb: increase buffer size to allow longer lines when reading a long line such as a dkim key in a txt record, ndb calls Brdstr, which is limited to the size of the buffer. This means we would fail to parse the line from NDB, and bail out early. Increasing the buffer size allows us to read and parse longer lines. --- sys/include/ndb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/include/ndb.h b/sys/include/ndb.h index b44da0539..1a9ab7742 100644 --- a/sys/include/ndb.h +++ b/sys/include/ndb.h @@ -27,7 +27,7 @@ struct Ndb Ndb *next; Biobufhdr b; /* buffered input file */ - uchar buf[256]; /* and its buffer */ + uchar buf[8192]; /* and its buffer */ ulong mtime; /* mtime of db file */ Qid qid; /* qid of db file */