Stepping line by line through the program and watching the stack, you see that a buffer overflow occurs shortly after.