From 29faf70fa77ca2512a937d799fe4eff84f112739 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 26 Mar 2006 13:57:34 +0000 Subject: [PATCH] (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. --- src/lib/commands/sail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/sail.c b/src/lib/commands/sail.c index 2071865f..c1836028 100644 --- a/src/lib/commands/sail.c +++ b/src/lib/commands/sail.c @@ -68,7 +68,7 @@ show_sail(struct nstr_item *nstr) pr(" %3d ", ship.shp_mobquota); pr(" %3d ", ship.shp_follow); if (ship.shp_path[0]) { - pr(ship.shp_path); + pr("%s", ship.shp_path); } else if ((ship.shp_autonav & AN_AUTONAV)) { pr("Has orders"); }