diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libssl/src/apps/apps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/src/apps/apps.c b/lib/libssl/src/apps/apps.c index 88bffd7d14c..00a6d7dd5e5 100644 --- a/lib/libssl/src/apps/apps.c +++ b/lib/libssl/src/apps/apps.c @@ -2012,18 +2012,18 @@ args_verify(char ***pargs, int *pargc, int *badarg, BIO *err, if (!argn) *badarg = 1; else { - long timestamp; + long long timestamp; /* * interpret the -attime argument as seconds since * Epoch */ - if (sscanf(argn, "%li", ×tamp) != 1) { + if (sscanf(argn, "%lli", ×tamp) != 1) { BIO_printf(bio_err, "Error parsing timestamp %s\n", argn); *badarg = 1; } - /* on some platforms time_t may be a float */ + /* XXX 2038 truncation */ at_time = (time_t) timestamp; } (*pargs)++; |