]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/offe.c
Update copyright notice.
[empserver] / src / lib / commands / offe.c
index 72e0291c53101403bef927b99883a084d09a71da..f25140e1fa2b40042df915959ab5318b643808ba 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2000, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2004, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -128,8 +128,8 @@ do_treaty(void)
     cp = getstring("Proposed treaty duration? (days) ", buf);
     if (cp == 0)
        return RET_FAIL;
-    j = atopi(cp);
-    if (j == 0) {
+    j = atoi(cp);
+    if (j <= 0) {
        pr("Bad treaty duration.\n");
        return RET_SYN;
     }