From dfda8f2eeec840bbe5e44b9d7563283ecb10bf10 Mon Sep 17 00:00:00 2001 From: DjLegolas Date: Sat, 14 May 2022 11:20:10 +0300 Subject: fix sysinfo print of cpu name the cpu name might have tailing spaces in Windows, which weren't remove before printing. --- src/common/sysinfo/win32/backend.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common') diff --git a/src/common/sysinfo/win32/backend.c b/src/common/sysinfo/win32/backend.c index 67a0fd2b..e2ae83ed 100644 --- a/src/common/sysinfo/win32/backend.c +++ b/src/common/sysinfo/win32/backend.c @@ -356,6 +356,8 @@ static char *read_cpu_info (IWbemClassObject *object) VariantClear (&max_clock_speed_variant); + g_strchomp (name_utf8); + if (cpu_freq_mhz > 1000) { result = g_strdup_printf ("%s (%.2fGHz)", name_utf8, cpu_freq_mhz / 1000.f); -- cgit 1.4.1