stack: fix possible stack buffer overflow
Merge pull request #2 from DirtYiCE/master

stack: fix possible stack buffer overflow