Index: coregrind/ume.c =================================================================== RCS file: /home/kde/valgrind/coregrind/ume.c,v retrieving revision 1.18 diff -u -r1.18 ume.c --- coregrind/ume.c 26 Jul 2004 15:43:57 -0000 1.18 +++ coregrind/ume.c 27 Jul 2004 17:29:46 -0000 @@ -369,9 +369,9 @@ check_mmap(res, (char*)ROUNDUP(bss,align), bytes); } - bytes = bss & (VKI_BYTES_PER_PAGE - 1); + bytes = bss & (align - 1); if (bytes > 0) { - bytes = VKI_BYTES_PER_PAGE - bytes; + bytes = align - bytes; memset((char *)bss, 0, bytes); } }