mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Backport from xs.
This commit is contained in:
parent
395f80bdc4
commit
01ffb92e5e
2 changed files with 5 additions and 1 deletions
4
xs_io.h
4
xs_io.h
|
@ -84,6 +84,10 @@ d_char *xs_read(FILE *f, int *sz)
|
|||
size -= r;
|
||||
}
|
||||
|
||||
/* null terminate, just in case it's treated as a string */
|
||||
s = xs_realloc(s, rdsz + 1);
|
||||
s[rdsz] = '\0';
|
||||
|
||||
*sz = rdsz;
|
||||
|
||||
return s;
|
||||
|
|
|
@ -1 +1 @@
|
|||
/* 65d893d17731d4cc1bfeeff6e5395e59fc4f7875 */
|
||||
/* d1bebf4154dd42f20c981f65325b33eadacfb1d8 */
|
||||
|
|
Loading…
Reference in a new issue