From 5d13669a2c3203ae7fa19192a992e8683ed46d8d Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sat, 14 Jan 2012 18:46:15 +0000 Subject: [PATCH] cryptlib.c: make even non-Windows builds "strtoull-agnostic". --- crypto/cryptlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index 4b0a36c3d3..ec8abdce9a 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -149,7 +149,7 @@ void OPENSSL_cpuid_setup(void) #if defined(_WIN32) if (!sscanf(env+off,"%I64i",&vec)) vec = strtoul(env+off,NULL,0); #else - vec = strtoull(env+off,NULL,0); + if (!sscanf(env+off,"%lli",&vec)) vec = strtoul(env+off,NULL,0); #endif if (off) vec = OPENSSL_ia32_cpuid()&~vec; } -- 2.25.1