]> granicus.if.org Git - sysstat/commit
Fix insecure data handling (Coverity CID#139643)
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 14 Jan 2017 16:13:40 +0000 (17:13 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 14 Jan 2017 16:13:40 +0000 (17:13 +0100)
commit8c42e2bafc9cee6647d957e269b135fff39e54ba
treeef15badbd6f037d2404daa2565c2c314f089a283
parent21340ad2d027d95865df39d21158eec0f0aa4587
Fix insecure data handling (Coverity  CID#139643)

Quieten Coverity (CID#139643):
Copying hl without checking the length might overrun the 512-character
fixed-size string field. So use strncpy() function instead of strcpy().

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
raw_stats.c