diff --git a/checkin_notes b/checkin_notes index e389cfd408..a76b4b6a09 100644 --- a/checkin_notes +++ b/checkin_notes @@ -8314,3 +8314,10 @@ Charlie 23 Nov 2010 Installer.cpp LoginItemAPI.c PostInstall.cpp + +Rom 23 Nov 2010 + - client: Copy the AltiVec CPU feature to the p_features field, leave + AltiVec in the host model field for backwards compatibility. + + client/ + hostinfo_unix.cpp diff --git a/client/hostinfo_unix.cpp b/client/hostinfo_unix.cpp index 1f6c3a090f..8e51025824 100644 --- a/client/hostinfo_unix.cpp +++ b/client/hostinfo_unix.cpp @@ -658,20 +658,20 @@ static void get_cpu_info_maxosx(HOST_INFO& host) { brand_string, family, model, stepping ); #else // PowerPC - char capabilities[256], model[256]; + char model[256]; int response = 0; int retval; len = sizeof(response); - safe_strcpy(host.p_vendor, "Power Macintosh"); retval = sysctlbyname("hw.optional.altivec", &response, &len, NULL, 0); if (response && (!retval)) { - safe_strcpy(capabilities, "AltiVec"); + safe_strcpy(host.p_features, "AltiVec"); } len = sizeof(model); sysctlbyname("hw.model", model, &len, NULL, 0); - snprintf(host.p_model, p_model_size, "%s [%s Model %s] [%s]", host.p_vendor, host.p_vendor, model, capabilities); + safe_strcpy(host.p_vendor, "Power Macintosh"); + snprintf(host.p_model, p_model_size, "%s [%s Model %s] [%s]", host.p_vendor, host.p_vendor, model, host.p_features); #endif