Use static allocation for buffer
Merge pull request #2 from pierrevr/master

Use static allocation for buffer