cryptlib.c: make even non-Windows builds "strtoull-agnostic".
authorAndy Polyakov <appro@openssl.org>
Sat, 14 Jan 2012 18:46:15 +0000 (18:46 +0000)
committerAndy Polyakov <appro@openssl.org>
Sat, 14 Jan 2012 18:46:15 +0000 (18:46 +0000)
crypto/cryptlib.c

index 4b0a36c..ec8abdc 100644 (file)
@@ -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;
     }