From cc4e5a5076d6594c7486a2c8000032f4a10eb862 Mon Sep 17 00:00:00 2001 From: olszomal Date: Wed, 21 Sep 2022 09:15:31 +0200 Subject: [PATCH] fix year 2038 problem --- osslsigncode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osslsigncode.c b/osslsigncode.c index ad83330..3695b3f 100644 --- a/osslsigncode.c +++ b/osslsigncode.c @@ -5772,7 +5772,7 @@ static int main_configure(int argc, char **argv, cmd_type_t *cmd, GLOBAL_OPTIONS usage(argv0, "all"); return 0; /* FAILED */ } - options->time = (time_t)strtoul(*(++argv), NULL, 10); + options->time = (time_t)strtoull(*(++argv), NULL, 10); #ifdef ENABLE_CURL } else if ((*cmd == CMD_SIGN || *cmd == CMD_ADD) && !strcmp(*argv, "-t")) { if (--argc < 1) {