misc: modem_if: replace memcpy for string to strncpy to fix overflow 92/31492/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 5 Dec 2014 10:23:57 +0000 (19:23 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 5 Dec 2014 10:23:59 +0000 (19:23 +0900)
commit41514f4effa0efc1e49194689ba3fc8e320dd1ba
tree50b6714883a415a3f965c742bc1b55fdda18b9cf
parented56e84cfe2c1bcde50d217b4b314092c9073446
misc: modem_if: replace memcpy for string to strncpy to fix overflow

The memcpy with string source and size larger than string length
causes data overflow. So this patch replaces memcpy to strncpy to
fix data overflow.

Change-Id: Ibc326bdf0a1235c67013576ab9d8f170e8711344
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/misc/modem_if/tizen_modem.c