Fixed memory allocation for Linux and Mac pasting

In its current form, pressing Ctrl-V will only paste a few characters (I found that it only pastes 6).

Commit 54c41536 introduces a bug where not enough memory is allocated for the clipboard text buffer, `cliptext`. `cliptext` is a malloc'ed string, so `sizeof` should not correctly report its size.