[PATCH 5.15 038/244] thermal: core: prevent potential string overflow