Change asprintf to sprintf using a stack allocated msg buffer
Merge branch 'master' of https://github.com/fredericopissarra/t50
Various memory allocation bugs fixed.