diff options
| author | 2022-12-09 18:43:31 +0100 | |
|---|---|---|
| committer | 2022-12-09 18:43:31 +0100 | |
| commit | 1b73c542a9a6c129ed419781f1795c97f1aa6c71 (patch) | |
| tree | b27ce319f3faed7a78651dbd180723589ad958e1 | |
| parent | Version 2.14 RELEASED. (diff) | |
| download | penes-snac2-1b73c542a9a6c129ed419781f1795c97f1aa6c71.tar.gz penes-snac2-1b73c542a9a6c129ed419781f1795c97f1aa6c71.tar.xz penes-snac2-1b73c542a9a6c129ed419781f1795c97f1aa6c71.zip | |
Backport from xs.
| -rw-r--r-- | xs_io.h | 2 | ||||
| -rw-r--r-- | xs_version.h | 2 |
2 files changed, 2 insertions, 2 deletions
| @@ -67,7 +67,7 @@ d_char *xs_read(FILE *f, int *sz) | |||
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | /* null terminate, just in case it's treated as a string */ | 69 | /* null terminate, just in case it's treated as a string */ |
| 70 | s = xs_realloc(s, rdsz + 1); | 70 | s = xs_realloc(s, _xs_blk_size(rdsz + 1)); |
| 71 | s[rdsz] = '\0'; | 71 | s[rdsz] = '\0'; |
| 72 | 72 | ||
| 73 | *sz = rdsz; | 73 | *sz = rdsz; |
diff --git a/xs_version.h b/xs_version.h index 70bed0e..a579266 100644 --- a/xs_version.h +++ b/xs_version.h | |||
| @@ -1 +1 @@ | |||
| /* a4ce4b2c0c9cd7c40aedd31eb352e3b979de3a17 */ | /* ad1c7ba748725abdecc1f1124d697f9130c49e87 */ | ||