From: Andy Polyakov Date: Sat, 14 Jan 2012 18:46:15 +0000 (+0000) Subject: cryptlib.c: make even non-Windows builds "strtoull-agnostic". X-Git-Tag: master-post-reformat~1982 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5d13669a2c3203ae7fa19192a992e8683ed46d8d;p=oweals%2Fopenssl.git cryptlib.c: make even non-Windows builds "strtoull-agnostic". --- 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; }