diff options
Diffstat (limited to 'storeio/pager.c')
-rw-r--r-- | storeio/pager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/storeio/pager.c b/storeio/pager.c index 75456b83..904c4b69 100644 --- a/storeio/pager.c +++ b/storeio/pager.c @@ -23,6 +23,7 @@ #include <assert.h> #include <strings.h> #include <unistd.h> +#include <errno.h> #include <sys/mman.h> #include "dev.h" @@ -53,7 +54,7 @@ pager_read_page (struct user_pager_info *upi, if (!err && want < vm_page_size) /* Zero anything we didn't read. Allocation only happens in page-size multiples, so we know we can write there. */ - bzero ((char *)*buf + want, vm_page_size - want); + memset ((char *)*buf + want, '\0', vm_page_size - want); *writelock = (store->flags & STORE_READONLY); |