diff options
author | Andy Polyakov <appro@openssl.org> | 2012-01-21 12:18:29 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2012-01-21 12:18:29 +0000 |
commit | f02f7c2c4aa19c8e70b1739fcdab749145d32805 (patch) | |
tree | 76b3fad1923e3774888d46c3d12e90c6ab1a823a /crypto/cryptlib.c | |
parent | a1e44cc14f3203e1cb0783af373acb6b3b57fce8 (diff) |
cryptlib.c: make even non-Windows builds "strtoull-agnostic" [from HEAD].
Diffstat (limited to 'crypto/cryptlib.c')
-rw-r--r-- | crypto/cryptlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |