commit c4e88f6a4daf7c8198c9f0ffd5010e3749624166 parent 3c1862752ef352c43a263bf3fd6f8dc1d2ee12ed Author: benjamin paul <bpaul@bpaul.xyz> Date: Thu, 5 Aug 2021 22:07:31 +1000 memory thing Diffstat:
M | main.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.c b/main.c @@ -63,7 +63,7 @@ fsize(FILE *f) { char * add_path(const char *dir, const char *name) { - size_t len = strlen(dir) + strlen(name) + 1; + size_t len = strlen(dir) + strlen(name) + 2; char *buf = malloc(len); memcpy(buf, dir, len);