power: Use strncpy to avoid the potential problem 00/289800/4 accepted/tizen/unified/20230316.101444
authorYunhee Seo <yuni.seo@samsung.com>
Tue, 14 Mar 2023 08:54:34 +0000 (17:54 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Wed, 15 Mar 2023 01:43:34 +0000 (10:43 +0900)
commitbbd0a3c2e25419e225028535ff03415b3f5807a7
tree27b5cad0110def65b0d033027d4c3d80b7dd822d
parent065f075a23ebf1dc387df715dce9efe03b5cf5ba
power: Use strncpy to avoid the potential problem

sscanf function is detected as risky function in static analysis.
Thus, change the sscanf function to strncpy function.

Change-Id: I44b883eeaeea401dc251577f2bbced4f9ee8c72c
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/power/power-boot.c