(dynamic_dummy.c) Change index variable to idx