char table in a function retains values between calls without static [SOLVED]

The stack locations where buff[] is stored just don't happen to be overwritten by other code.