(show_sail): Fix misuse of pr(): passed formatted string instead of
format string and arguments. Correctness depends on paths not containing '%', which is correct, but not as robust as it could be.
This commit is contained in:
parent
b49bfd7814
commit
29faf70fa7
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ show_sail(struct nstr_item *nstr)
|
||||||
pr(" %3d ", ship.shp_mobquota);
|
pr(" %3d ", ship.shp_mobquota);
|
||||||
pr(" %3d ", ship.shp_follow);
|
pr(" %3d ", ship.shp_follow);
|
||||||
if (ship.shp_path[0]) {
|
if (ship.shp_path[0]) {
|
||||||
pr(ship.shp_path);
|
pr("%s", ship.shp_path);
|
||||||
} else if ((ship.shp_autonav & AN_AUTONAV)) {
|
} else if ((ship.shp_autonav & AN_AUTONAV)) {
|
||||||
pr("Has orders");
|
pr("Has orders");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue