[PATCH 5.10 027/191] thermal: core: prevent potential string overflow