diff --git a/testbufferoverrun2/testbufferoverrun2.cpp b/testbufferoverrun2/testbufferoverrun2.cpp index efa541c25..e5d61d4d8 100644 --- a/testbufferoverrun2/testbufferoverrun2.cpp +++ b/testbufferoverrun2/testbufferoverrun2.cpp @@ -2,7 +2,7 @@ void f() { - char str[50]; + int val[50]; for (i = 0; i < 100; i++) - str[i] = 0; + sum += val[i]; } \ No newline at end of file