nserver

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 905c494ec1250287d2cd6d91bc1c64b50bb44a63
parent 1895277797fab61819ba4c666d259278f1f89c85
Author: rsiddharth <s@ricketyspace.net>
Date:   Tue, 14 Apr 2020 20:50:15 -0400

nserver: Update mk_datum

* nserver/src/db.c  (mk_datum): Set datum's dsize to exactly the
length of the data.

Diffstat:
nserver/src/db.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nserver/src/db.c b/nserver/src/db.c @@ -12,7 +12,7 @@ datum *mk_datum(char *data) check(d != NULL, "datum mem alloc failed"); d->dptr = data; - d->dsize = strlen(data) + 2; + d->dsize = strlen(data); return d; error: