summary refs log tree commit diff stats
path: root/src/common/sysinfo/win32/backend.c
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2022-12-18 13:43:01 -0300
committerSoniEx2 <endermoneymod@gmail.com>2022-12-18 13:43:01 -0300
commit014b242df803089c34084de3d806a7c4e4dad75e (patch)
tree12dd5534a445fedc63b8219e48951bff0b3d2283 /src/common/sysinfo/win32/backend.c
parentd049be950cfaca6311b575890e81521d62db68d7 (diff)
parentbb7a03e9f68a775ca93dd6ad8ea61e4f1d2ba81b (diff)
Merge remote-tracking branch 'upstream/master' into default
Diffstat (limited to 'src/common/sysinfo/win32/backend.c')
-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);