commit 1b73c542a9a6c129ed419781f1795c97f1aa6c71 parent 6087b4540d9f2bd2279bff2505f95ba6c8648d09 Author: default <nobody@localhost> Date: Fri, 9 Dec 2022 18:43:31 +0100 Backport from xs. Diffstat:
M | xs_io.h | | | 2 | +- |
M | xs_version.h | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/xs_io.h b/xs_io.h @@ -67,7 +67,7 @@ d_char *xs_read(FILE *f, int *sz) } /* null terminate, just in case it's treated as a string */ - s = xs_realloc(s, rdsz + 1); + s = xs_realloc(s, _xs_blk_size(rdsz + 1)); s[rdsz] = '\0'; *sz = rdsz; diff --git a/xs_version.h b/xs_version.h @@ -1 +1 @@ -/* a4ce4b2c0c9cd7c40aedd31eb352e3b979de3a17 */ +/* ad1c7ba748725abdecc1f1124d697f9130c49e87 */