[PATCH 5.4 013/119] thermal: core: prevent potential string overflow