summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-07-21 18:19:42 +0200
committerLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-07-21 18:19:42 +0200
commit3cd36e36f924b2bf7a8719b5bca15733b81e2163 (patch)
treecfe177688383f918ed0b407799919cef2299c61f
parent7639fa582728adfc6d3fa51852fffc9ad519b526 (diff)
tak: read_stream: maak uitvoer buffer zo groot als nodig
-rw-r--r--src/tak.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tak.c b/src/tak.c
index d92123a..e970ae1 100644
--- a/src/tak.c
+++ b/src/tak.c
@@ -98,6 +98,7 @@ static char *read_stream(FILE *stream, size_t *sz) {
}
}
+ res = realloc(res, *sz);
return res;
}