Fixed memory allocation for Linux and Mac pasting
Merge pull request #39 from clearskies/pullreqs

Fixed memory allocation for Linux and Mac pasting