Fix stack smashing errors
Merge pull request #23 from greso/fix_stack_smashing

Fix stack smashing errors