[PATCH 4.14 05/45] thermal: core: prevent potential string overflow