diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-12-08 08:24:17 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-12-08 08:24:17 +0000 |
commit | 3437935102d184899aa066ead480365dbf7a6bba (patch) | |
tree | f53652ddeff1c6dd99c286f488f12583019c85d4 /utils | |
parent | 6da8f8dc0345f95a6a3ddc1771b395a8cc78b50b (diff) |
Use PAGE_SIZE, not 4096
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ldconfig.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/utils/ldconfig.c b/utils/ldconfig.c index f2bdd2dfa..bf3853635 100644 --- a/utils/ldconfig.c +++ b/utils/ldconfig.c @@ -37,6 +37,7 @@ #include <errno.h> #include <sys/stat.h> #include <sys/mman.h> +#include <sys/user.h> #include "dl-elf.h" #include "readsoname.h" @@ -186,7 +187,7 @@ char *is_shlib(const char *dir, const char *name, int *type, struct exec exec; ElfW(Ehdr) *elf_hdr; struct stat statbuf; - char buff[4096]; + char buff[PAGE_SIZE]; /* see if name is of the form *.so* */ if (name[strlen(name)-1] != '~' && (cp = strstr(name, ".so"))) @@ -286,8 +287,8 @@ char *is_shlib(const char *dir, const char *name, int *type, void link_shlib(const char *dir, const char *file, const char *so) { int change = 1; - char libname[4096]; - char linkname[4096]; + char libname[PAGE_SIZE]; + char linkname[PAGE_SIZE]; struct stat libstat; struct stat linkstat; @@ -612,7 +613,7 @@ void cache_write(void) { int cachefd; int stroffset = 0; - char tempfile[4096]; + char tempfile[PAGE_SIZE]; liblist_t *cur_lib; if (!magic.nlibs) |