From: ehofman Date: Sat, 24 Apr 2004 21:25:54 +0000 (+0000) Subject: Frederic Bouvier discovered a buffer overflow in the airport select dialog. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=70cb759ea88526b3fb16dc6221b0a73bc730d641;p=flightgear.git Frederic Bouvier discovered a buffer overflow in the airport select dialog. --- 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);