[PATCH 6.6 122/603] thermal: core: prevent potential string overflow