X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=actions.c;h=059d92b5e02a19aa979db446ee2d6d33e15ddf15;hp=3808f9b119b8ea836eafac3308a7774c73d5106e;hb=c0a4d55d6cb21c70af69d2ed6d5d4544c382539e;hpb=0fbd79b608bf8b481e079b98130c392a5c594776 diff --git a/actions.c b/actions.c index 3808f9b..059d92b 100644 --- a/actions.c +++ b/actions.c @@ -3,6 +3,7 @@ #include #include "advent.h" #include "dungeon.h" +#include static int fill(verb_t, obj_t); @@ -1250,7 +1251,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;