Replaced strncpy() with g_strlcpy() in wifi-power.c 65/139065/1
authorJaehyun Kim <jeik01.kim@samsung.com>
Mon, 17 Jul 2017 06:38:44 +0000 (15:38 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Mon, 17 Jul 2017 06:39:43 +0000 (15:39 +0900)
commit0e12e098221e7f979fe96f28b1501a98a8ef5f4c
treef1e7ca96f678cfb87be4b4d81631a3fb674f8d4b
parentc4417723599b0182ab1704c8d69073e3f7972eca
Replaced strncpy() with g_strlcpy() in wifi-power.c

strncpy doesn’t set zero byte implicitly.
Therefore it is wrong to assume that strlen returns correct length if mac_addr larger than rand_addr.

Change-Id: I8fe4c3e44356e7dfbe311e55604447417d21289c
packaging/net-config.spec
src/wifi-power.c