diff options
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) | |||
| 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; |