File multitail-bufferoverflowstrncat.patch of Package multitail

diff -Naur multitail-5.2.5-org/ui.c multitail-5.2.5/ui.c
--- multitail-5.2.5-org/ui.c	2010-02-13 23:06:52.000000000 +0100
+++ multitail-5.2.5/ui.c	2010-02-14 11:53:59.000000000 +0100
@@ -2465,7 +2465,7 @@
 			popup_buffer[sizeof(popup_buffer) - 1] = 0x00;
 		}
 		else
-			strncat(popup_buffer, error, sizeof(popup_buffer));
+			strncat(popup_buffer, error, sizeof(popup_buffer)-strlen(popup_buffer)-1);
 
 		myfree(error);
 	}
openSUSE Build Service is sponsored by