diff --git a/nemu/tests/expr_test.c b/nemu/tests/expr_test.c index dd81d23..e400fdc 100644 --- a/nemu/tests/expr_test.c +++ b/nemu/tests/expr_test.c @@ -182,7 +182,7 @@ START_TEST(test_expr_plain_register) { ck_assert(value == i); for (j = 1; j < 10; j++) { - buf[i] = '\0'; + buf[j] = '\0'; } }