diff --git a/src/util.c b/src/util.c index 53c195f..d2d348f 100644 --- a/src/util.c +++ b/src/util.c @@ -66,7 +66,7 @@ stralloc file2stralloc(const char *path) { } stralloc sa = EMPTY_STRALLOC; stralloc_copyb(&sa, p, len); - munmap(fd, len); + munmap(p, len); close(fd); return sa;