From 6193080dff7c21263c9b3c3b10d13fc652e18c94 Mon Sep 17 00:00:00 2001 From: Bernd Machenschalk Date: Tue, 1 Jun 2021 00:01:27 +0200 Subject: [PATCH] Mac client/hostinfo_unix: fix for CPU features detection - feature_string is only set to something useful in ARM64 case --- client/hostinfo_unix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/hostinfo_unix.cpp b/client/hostinfo_unix.cpp index 371709abf6..5ad2977b62 100644 --- a/client/hostinfo_unix.cpp +++ b/client/hostinfo_unix.cpp @@ -910,10 +910,11 @@ static void get_cpu_info_mac(HOST_INFO& host) { } else if (log_flags.coproc_debug) { msg_printf(0, MSG_INFO, "[x86_64-M1] didn't find file %s", fpath); } -#endif // defined(__i386__) || defined(__x86_64__) strncpy(features,feature_string.c_str(),sizeof(features)); +#endif // defined(__i386__) || defined(__x86_64__) + // Convert Mac CPU features string to match that returned by Linux for(p=features; *p; p++) { *p = tolower(*p);