Enlarge buffer only if requested size is > than current size
Merge pull request #447 from marco-c/what

Enlarge buffer only if requested size is > than current size