Getting right size for malloc