From 70cb759ea88526b3fb16dc6221b0a73bc730d641 Mon Sep 17 00:00:00 2001 From: ehofman Date: Sat, 24 Apr 2004 21:25:54 +0000 Subject: [PATCH] Frederic Bouvier discovered a buffer overflow in the airport select dialog. --- src/GUI/AirportList.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/AirportList.cxx b/src/GUI/AirportList.cxx index 431a88981..df7c043d3 100644 --- a/src/GUI/AirportList.cxx +++ b/src/GUI/AirportList.cxx @@ -25,7 +25,7 @@ AirportList::AirportList (int x, int y, int width, int height) _content[i] = new char[buf_len+1]; memcpy(_content[i], buf, buf_len); - _content[i][buf_len+1] = '\0'; + _content[i][buf_len] = '\0'; } _content[_nAirports] = 0; newList(_content); -- 2.39.5