diff options
author | Ori Bernstein <ori@eigenstate.org> | 2022-06-19 23:42:04 +0000 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2022-06-19 23:42:04 +0000 |
commit | 7ca997bf7efdca16416b22488ebc7b70c419fd44 (patch) | |
tree | f6cd53d7869f41b436b0e8a1fc214e8c3576cdfc | |
parent | f0fc84aba3a40557539e7c014454b916a101759d (diff) |
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.
-rw-r--r-- | sys/include/ndb.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |