diff options
| author | default <nobody@localhost> | 2022-12-09 18:43:31 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2022-12-09 18:43:31 +0100 |
| commit | 1b73c542a9a6c129ed419781f1795c97f1aa6c71 (patch) | |
| tree | b27ce319f3faed7a78651dbd180723589ad958e1 /xs_io.h | |
| parent | 6087b4540d9f2bd2279bff2505f95ba6c8648d09 (diff) | |
Backport from xs.
Diffstat (limited to 'xs_io.h')
| -rw-r--r-- | xs_io.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |