Rating:
Overflow the buffer and setup a puts call to print the content of the global password. Then use it to get the flag.
I don't remember