From 63eb54661c1c305375afd8f07f661b6e40c00361 Mon Sep 17 00:00:00 2001 From: Jimothy Branson Date: Thu, 14 Aug 2025 16:18:35 -0700 Subject: [PATCH] Allow for longer CPU names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Increase CPUINFO_PACKAGE_NAME_MAX to allow for longer strings, such as "Snapdragon® X Elite - X1E78100 - Qualcomm® Oryon™ CPU", which is 53 characters and WideCharToMultiByte converts to a 57 byte string. --- include/cpuinfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cpuinfo.h b/include/cpuinfo.h index 0407d1c5..a0f2af32 100644 --- a/include/cpuinfo.h +++ b/include/cpuinfo.h @@ -732,7 +732,7 @@ struct cpuinfo_cluster { uint64_t frequency; }; -#define CPUINFO_PACKAGE_NAME_MAX 48 +#define CPUINFO_PACKAGE_NAME_MAX 64 struct cpuinfo_package { /** SoC or processor chip model name */