OSDN Git Service

avoid a potential buffer overflow
authorKeun Soo Yim <yim@google.com>
Thu, 14 Apr 2016 00:11:20 +0000 (17:11 -0700)
committerKeun Soo Yim <yim@google.com>
Thu, 14 Apr 2016 01:40:31 +0000 (01:40 +0000)
commit1973685c095e3e15760d3ba4ad9e77997c46594a
tree3f89fa6e964ed99e9f1cd72379d6af5ed82bb563
parentf3769c17615bc9c227cff83cad0e55bb9f878197
avoid a potential buffer overflow

strncat can copy upto n bytes if its 3rd argument is n,
while the 1st argument which is the destination has only n bytes
in this case.

Change-Id: I3469abdcf55e64c5878a855700b323335c40c8be
rild/rild.c