cmd: usbdown: remove overflow possiblity on fill_entity_usbdown() 72/140872/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 27 Jul 2017 03:13:22 +0000 (12:13 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 27 Jul 2017 03:15:36 +0000 (12:15 +0900)
commit305669dd9fd5034f2bc8843f786fbf9adf9a4417
tree608d9a7168e5463a3976f6e9ea18e0d21a18494b
parente61a9e79ca0f92a2dd93163e56e9a8ee99cbaa45
cmd: usbdown: remove overflow possiblity on fill_entity_usbdown()

The file name parsed from dfu_alo_info can be longer than NAME_SIZE,
so strcpy function has possiblity of overflow.
Remove the possible overflow using strncpy with less length than
NAME_SIZE.

Change-Id: Ib70f539a810e553136421c7faa576144811c3112
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
cmd/usbdown.c