]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/wing.c
Fix trailing whitespace
[empserver] / src / lib / commands / wing.c
index 38a72fedd7abf05b8e29c7b5c29103d03c350b48..5b0172319dc17cf044eb51b894fb2cc691d6baa9 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2008, 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;
 }