ref: c2884b1bbdd013e9e5bf53ab2a63526cf61756c3
parent: d00bb9cd3cb19217b8450c9134209f7f1ec96a25
author: qwx <[email protected]>
date: Fri Aug 25 10:26:59 EDT 2023
chunk: fix uninitialized buffer causing random glitching
--- a/chunk.c
+++ b/chunk.c
@@ -526,6 +526,7 @@
b->buf = erealloc(b->buf, c->len, b->bufsz);
b->bufsz = c->len;
}
+ memset(d, 0, sizeof *d);
d->norris = c;
*d = newdot(d);
return c;