[PATCH 6.5 114/550] thermal: core: prevent potential string overflow