C error

void findWay(int column,int sum,char *array,int s,stack_t sta)

When I debug program, I am getting an error which is "Address 0x53 out of bounds" (if(maze[s+column+2]=='0') at this line). Why?

Someone please help me.

Solution to answer:

Because s+column+2 exceeds the bounds of the array, you need to allocate more memory for array or make sure you don't step outside the allocated memory.