Put some of important parameters into fixed width signed integers
[open-adventure.git] / actions.c
index 3808f9b119b8ea836eafac3308a7774c73d5106e..e41c7bf5913b3918c84787af649e55ae6103e8fc 100644 (file)
--- a/actions.c
+++ b/actions.c
@@ -1250,7 +1250,7 @@ static int wake(verb_t verb, obj_t obj)
 static int seed(verb_t verb, const char *arg)
 /* Set seed */
 {
-    int seed = atoi(arg);
+    int32_t seed = strtol(arg, NULL, 10);
     speak(actions[verb].message, seed);
     set_seed(seed);
     --game.turns;