From 3d11b5ecfd4196dec46642ac2eae0503d76ef90b Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 2 Dec 2007 18:33:28 +0000 Subject: [PATCH] (army, fleet, wing): Fix printing of new group broken in rev. 1.13. --- src/lib/commands/army.c | 2 +- src/lib/commands/flee.c | 2 +- src/lib/commands/wing.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/commands/army.c b/src/lib/commands/army.c index 12b1c487..93e8220b 100644 --- a/src/lib/commands/army.c +++ b/src/lib/commands/army.c @@ -83,6 +83,6 @@ army(void) putland(land.lnd_uid, &land); count++; } - pr("%d unit%s added to army `%c'\n", count, splur(count), c); + pr("%d unit%s added to army `%1.1s'\n", count, splur(count), &c); return RET_OK; } diff --git a/src/lib/commands/flee.c b/src/lib/commands/flee.c index 89ed8885..1ce4b4a2 100644 --- a/src/lib/commands/flee.c +++ b/src/lib/commands/flee.c @@ -83,6 +83,6 @@ flee(void) putship(ship.shp_uid, &ship); count++; } - pr("%d ship%s added to fleet `%c'\n", count, splur(count), c); + pr("%d ship%s added to fleet `%1.1s'\n", count, splur(count), &c); return RET_OK; } diff --git a/src/lib/commands/wing.c b/src/lib/commands/wing.c index 4ccb8903..95c1fc62 100644 --- a/src/lib/commands/wing.c +++ b/src/lib/commands/wing.c @@ -69,6 +69,6 @@ wing(void) putplane(plane.pln_uid, &plane); count++; } - pr("%d plane%s added to wing `%c'\n", count, splur(count), c); + pr("%d plane%s added to wing `%1.1s'\n", count, splur(count), &c); return RET_OK; }