diff --git a/src/utils/read_all.c b/src/utils/read_all.c index 37b8ec6a..de56a8f8 100644 --- a/src/utils/read_all.c +++ b/src/utils/read_all.c @@ -63,7 +63,8 @@ ssize_t read_all (const char* filename, void **bufp) errno = EINVAL; return -1; } - *bufp = allocate_aligned (file_size); + size_t alignment = getpagesize(); + *bufp = aligned_alloc(alignment, file_size); //allocate_aligned (file_size); if (*bufp == NULL) { errno = EINVAL; return -1;