File plib-1.8.5-commit2154-segfault.patch of Package plib

[Plib-devel] [PATCH] puInput: don't segfault if one pastes an empty(NULL) paste buffer -- e-mail from Melchior Franz dated Mon 2/9/2009 7:42 AM
--- src/pui/puInput.cxx	2009/02/09 14:53:20	2153
+++ src/pui/puInput.cxx	2009/02/09 14:55:47	2154
@@ -369,6 +369,9 @@
 
       case 0x16 /* ^V */ : /* Paste buffer into text */
         {
+          if ( ! puGetPasteBuffer () )
+            break ;
+
           if ( select_start_position != select_end_position )
             removeSelectRegion () ;