]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/wing.c
Update copyright notice
[empserver] / src / lib / commands / wing.c
index 4ccb89030e5bf87a8ffd886e26c7788a074af978..2a079063c80fd8fd921e35c0ca11aa8539deeee0 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -26,9 +26,9 @@
  *  ---
  *
  *  wing.c: Add planes to a wing
- * 
+ *
  *  Known contributors to this file:
- *  
+ *
  */
 
 #include <config.h>
@@ -57,7 +57,7 @@ wing(void)
     }
     if (c == '~')
        c = 0;
-    if (!snxtitem(&nstr, EF_PLANE, player->argp[2]))
+    if (!snxtitem(&nstr, EF_PLANE, player->argp[2], NULL))
        return RET_SYN;
     count = 0;
     while (nxtitem(&nstr, &plane)) {
@@ -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;
 }