]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix argument count given to makecontext.
authorTom Hughes <tom@compton.nu>
Fri, 18 Nov 2005 09:24:05 +0000 (09:24 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 18 Nov 2005 09:24:05 +0000 (09:24 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5185

memcheck/tests/stack_changes.c

index 7694b461e337c9da0f5bd6f9110c48752d509dc1..f5e573b1709a0f1200926321e6c29c0f75d06657 100644 (file)
@@ -54,8 +54,8 @@ int main(int argc, char **argv)
     int c1 = init_context(&ctx1);
     int c2 = init_context(&ctx2);
 
-    makecontext(&ctx1, (void (*)()) hello, 2, &ctx2);
-    makecontext(&ctx2, (void (*)()) hello, 2, &ctx1);
+    makecontext(&ctx1, (void (*)()) hello, 1, &ctx2);
+    makecontext(&ctx2, (void (*)()) hello, 1, &ctx1);
 
     swapcontext(&oldc, &ctx1);