[Plib-devel] [PATCH] puInput: don't segfault if one pastes an empty (NULL) paste buffer
Brought to you by:
sjbaker
From: Melchior F. <mf...@us...> - 2009-02-09 13:41:56
|
diff --git a/src/pui/puInput.cxx b/src/pui/puInput.cxx index 006ad18..bca61e9 100644 --- a/src/pui/puInput.cxx +++ b/src/pui/puInput.cxx @@ -369,6 +369,9 @@ int puInput::checkKey ( int key, int updown ) case 0x16 /* ^V */ : /* Paste buffer into text */ { + if ( ! puGetPasteBuffer () ) + break ; + if ( select_start_position != select_end_position ) removeSelectRegion () ; |