Fix bug spotted by Jean-Christphe Dubois: reserve space for null terminator.
diff --git a/lib/lib.c b/lib/lib.c
index ecef64d..e4b9d8e 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -650,7 +650,7 @@
 
 	for (;;) {
 		if (1>read(fd, &c, 1)) break;
-		if (!(len & 63)) buf=xrealloc(buf, len+64);
+		if (!(len & 63)) buf=xrealloc(buf, len+65);
 		if ((buf[len++]=c) == end) break;
 	}
 	if (buf) buf[len]=0;