Fix sail command to support full path length
Off-by-one in cmd_sail_ship() chopped off the last character of full-length sail paths.
This commit is contained in:
parent
91302d36dd
commit
217fe6dd16
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ cmd_sail_ship(struct nstr_item *nstr)
|
||||||
return RET_FAIL;
|
return RET_FAIL;
|
||||||
if (!check_ship_ok(&ship))
|
if (!check_ship_ok(&ship))
|
||||||
continue;
|
continue;
|
||||||
strncpy(ship.shp_path, cp, sizeof(ship.shp_path) - 2);
|
strncpy(ship.shp_path, cp, sizeof(ship.shp_path) - 1);
|
||||||
ship.shp_mission = 0;
|
ship.shp_mission = 0;
|
||||||
putship(ship.shp_uid, &ship);
|
putship(ship.shp_uid, &ship);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue