From f02f7c2c4aa19c8e70b1739fcdab749145d32805 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sat, 21 Jan 2012 12:18:29 +0000 Subject: [PATCH] cryptlib.c: make even non-Windows builds "strtoull-agnostic" [from HEAD]. --- crypto/cryptlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index 615bcebec4..766ea8cac7 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -698,7 +698,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",(long long *)&vec)) vec = strtoul(env+off,NULL,0); #endif if (off) vec = OPENSSL_ia32_cpuid()&~vec; } -- 2.40.0