64-bit cleanness fix for command-line printing
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3409 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c
index c924cbf..eaef6d2 100644
--- a/coregrind/vg_main.c
+++ b/coregrind/vg_main.c
@@ -926,13 +926,13 @@
/* 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);