From 3437935102d184899aa066ead480365dbf7a6bba Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 8 Dec 2004 08:24:17 +0000 Subject: Use PAGE_SIZE, not 4096 --- utils/ldconfig.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'utils') 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 #include #include +#include #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) -- cgit v1.2.3