2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 22:05:11 +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:
Jean Delvare
2010-11-02 12:37:35 +00:00
parent 621dc10aa7
commit 41a0981e28

View File

@@ -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,