Check if we have enough place to add quotes
Moved buffer size check after the declarations block
Otherwise it is not a valid C code.
Merge pull request #3 from Kira-sempai/addBufLenCheck

Check if we have enough place to add quotes