]> git.pond.sub.org Git - empserver/commitdiff
(show_sail): Fix misuse of pr(): passed formatted string instead of
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 26 Mar 2006 13:57:34 +0000 (13:57 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 26 Mar 2006 13:57:34 +0000 (13:57 +0000)
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

index 2071865f9fb3964162bb987571d1fd11b518ab13..c1836028dbf1dbe4c21e1b5d528c9681982bd69f 100644 (file)
@@ -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");
        }