aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Čerman2019-08-17 21:34:19 +0200
committerOndrej Čerman2019-08-17 21:34:19 +0200
commitec849b74627cd6ad890714a0c3215fcf3c9c0dad (patch)
tree6af76cd3764263002438c705c6c1cbf0c425d4de
parent79dc7129d873ad56a57849c49b6e7535812bc35a (diff)
Strchomp for model name
-rw-r--r--src/zenmonitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenmonitor.c b/src/zenmonitor.c
index 4d96cb9..4ce4bb9 100644
--- a/src/zenmonitor.c
+++ b/src/zenmonitor.c
@@ -59,7 +59,7 @@ gchar *cpu_model() {
memcpy(model+44, &edx, 4);
model[48] = 0;
- return g_strdup(model);
+ return g_strdup(g_strchomp(model));
}
static SensorSource sensor_sources[] = {