Home Alarm with a 3 wire 4x3 analog keypad nearly done but need some help please

HazardsMind:
There is a problem with this code, in your get_password case. Once you get the 5th number, your telling the program to put a zero in the arrays 5th place.

Yeah right, so what's the problem?