]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
64-bit cleanness fix for command-line printing
authorJulian Seward <jseward@acm.org>
Wed, 23 Mar 2005 03:06:30 +0000 (03:06 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 23 Mar 2005 03:06:30 +0000 (03:06 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3409

coregrind/vg_main.c

index c924cbf4ad7db8fe5b0db87e21461519a390e4ec..eaef6d2b75ad26b6218d8ccab6604c3286a3bf67 100644 (file)
@@ -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);