summaryrefslogtreecommitdiffstats
path: root/crypto/cryptlib.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2012-01-14 18:46:15 +0000
committerAndy Polyakov <appro@openssl.org>2012-01-14 18:46:15 +0000
commit5d13669a2c3203ae7fa19192a992e8683ed46d8d (patch)
treea2a9ea010ee4fca225e8bc1c28f0b57e918d8f8e /crypto/cryptlib.c
parentadb5a2694a05b7705ff385e678731321f20650aa (diff)
cryptlib.c: make even non-Windows builds "strtoull-agnostic".
Diffstat (limited to 'crypto/cryptlib.c')
-rw-r--r--crypto/cryptlib.c2
1 files changed, 1 insertions, 1 deletions
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;
}