commit 1b73c54

default  ·  2022-12-09 17:43:31 +0000 UTC
parent 6087b45
Backport from xs.
2 files changed,  +2, -2
+1, -1
1@@ -67,7 +67,7 @@ d_char *xs_read(FILE *f, int *sz)
2     }
3 
4     /* null terminate, just in case it's treated as a string */
5-    s = xs_realloc(s, rdsz + 1);
6+    s = xs_realloc(s, _xs_blk_size(rdsz + 1));
7     s[rdsz] = '\0';
8 
9     *sz = rdsz;
+1, -1
1@@ -1 +1 @@
2-/* a4ce4b2c0c9cd7c40aedd31eb352e3b979de3a17 */
3+/* ad1c7ba748725abdecc1f1124d697f9130c49e87 */