From: Julian Seward Date: Wed, 23 Mar 2005 03:06:30 +0000 (+0000) Subject: 64-bit cleanness fix for command-line printing X-Git-Tag: svn/VALGRIND_3_0_0~909 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8366aee7e1d79971e247c342af9675347034b73e;p=thirdparty%2Fvalgrind.git 64-bit cleanness fix for command-line printing git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3409 --- diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c index c924cbf4ad..eaef6d2b75 100644 --- a/coregrind/vg_main.c +++ b/coregrind/vg_main.c @@ -926,13 +926,13 @@ static Addr setup_client_stack(void* init_sp, /* OK, now we know how big the client stack is */ stacksize = - sizeof(int) + /* argc */ + sizeof(Word) + /* argc */ sizeof(char **)*argc + /* argv */ sizeof(char **) + /* terminal NULL */ sizeof(char **)*envc + /* envp */ sizeof(char **) + /* terminal NULL */ auxsize + /* auxv */ - ROUNDUP(stringsize, sizeof(int)) +/* strings (aligned) */ + ROUNDUP(stringsize, sizeof(Word)) +/* strings (aligned) */ VKI_PAGE_SIZE; /* page for trampoline code */ if (0) VG_(printf)("stacksize = %d\n", stacksize);