mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
Backport from xs.
This commit is contained in:
parent
6087b4540d
commit
1b73c542a9
2 changed files with 2 additions and 2 deletions
2
xs_io.h
2
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;
|
||||
|
|
|
@ -1 +1 @@
|
|||
/* a4ce4b2c0c9cd7c40aedd31eb352e3b979de3a17 */
|
||||
/* ad1c7ba748725abdecc1f1124d697f9130c49e87 */
|
||||
|
|
Loading…
Reference in a new issue