ref: da3e6c7e93d538ca008a47c0808b95dbd692b0fc
parent: e144373ab6bc605e1a951d2038ea7ab04091c7d0
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jun 19 19:42:04 EDT 2022
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.
--- a/sys/include/ndb.h
+++ b/sys/include/ndb.h
@@ -27,7 +27,7 @@
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 */
--
⑨