[Fix] Fixed a buffer overrun.
This commit is contained in:
parent
232499f3c0
commit
15216c7544
@ -81,7 +81,7 @@ void player_board(void) {
|
||||
window_addButton(wdw, 20+BUTTON_WIDTH+20, 20, BUTTON_WIDTH, BUTTON_HEIGHT,
|
||||
"btnStealCargo", "Cargo", board_stealCargo);
|
||||
window_addButton(wdw, 20+2*(BUTTON_WIDTH+20), 20, BUTTON_WIDTH, BUTTON_HEIGHT,
|
||||
"btnStealFuel", "Fuel", board_stealFuel);
|
||||
"btnStealCargo", "Fuel", board_stealFuel);
|
||||
|
||||
window_addButton(wdw, -20, 20, BUTTON_WIDTH, BUTTON_HEIGHT,
|
||||
"btnBoardingClose", "Leave", board_exit);
|
||||
|
@ -1025,6 +1025,8 @@ char* pilot_getOutfits(Pilot* pilot) {
|
||||
if(pilot->noutfits > 0)
|
||||
snprintf(str, 1024, "%dx %s",
|
||||
pilot->outfits[0].quantity, pilot->outfits[0].outfit->name);
|
||||
else
|
||||
snprintf(str, 1024, "None");
|
||||
|
||||
/* Rest of the outfits. */
|
||||
for(i = 1; i < pilot->noutfits; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user