ref: 7ca997bf7efdca16416b22488ebc7b70c419fd44
parent: f0fc84aba3a40557539e7c014454b916a101759d
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 */