aescrypt2.c local char array not initial

I change the main() function to a normal function, use many threads call it. the buffer[1024] is undefined everytime. it's a problem in this situation, so, in concurrent situation, these initial operation is necessary.