1
0
Fork 0

Frederic Bouvier discovered a buffer overflow in the airport select dialog.

This commit is contained in:
ehofman 2004-04-24 21:25:54 +00:00
parent df472fe0f5
commit 70cb759ea8

View file

@ -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);