mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-10 16:30:50 +00:00
Ensure there's at least one space between the label and the value.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5872 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
621dc10aa7
commit
41a0981e28
1 file changed
+4
-1
@@ -120,7 +120,10 @@ static int get_label_size(const sensors_chip_name *name)
|
||||
max_size = strlen(label);
|
||||
free(label);
|
||||
}
|
||||
return max_size + 1;
|
||||
|
||||
/* One more for the colon, and one more to guarantee at least one
|
||||
space between that colon and the value */
|
||||
return max_size + 2;
|
||||
}
|
||||
|
||||
static void print_temp_limits(double limit1, double limit2,
|
||||
|
||||
Reference in new issue
Block a user