FrozenSand / ioq3-for-UrbanTerror-4

The officially supported ioquake3 engine by the Frozen Sand Development Team for the game Urban Terror 4.x
http://www.urbanterror.info
GNU General Public License v2.0
148 stars 65 forks source link

Fixed memory allocation for Linux and Mac pasting #39

Closed anthonynguyen closed 10 years ago

anthonynguyen commented 10 years ago

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.

Barbatos commented 10 years ago

Good catch, thank you!