summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorDjLegolas <djlegolas@protonmail.com>2022-05-14 11:20:10 +0300
committerPatrick <tingping@tingping.se>2022-05-14 12:42:46 -0500
commitdfda8f2eeec840bbe5e44b9d7563283ecb10bf10 (patch)
tree8794b8e9b1cbf103ae1118a62030addfd933e256 /src
parentb8645bfbf21a5f3e4583d7fc97c418585a48624a (diff)
fix sysinfo print of cpu name
the cpu name might have tailing spaces in Windows, which weren't remove before printing.
Diffstat (limited to 'src')
-rw-r--r--src/common/sysinfo/win32/backend.c2
1 files changed, 2 insertions, 0 deletions
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);