]> git.ipfire.org Git - thirdparty/suricata.git/commit
Fixed string copy and cat functions and made shortening safer.
authormaxtors <moe.andreas@gmail.com>
Wed, 15 Apr 2015 14:38:58 +0000 (16:38 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 2 May 2016 08:10:40 +0000 (10:10 +0200)
commit88a6e7960799370b9e9f56a94a3be630043e3c3d
tree1a12742fdd89ceb90ab2593c67ba11cbf8d9162f
parent10d1450e4995630834736bcb5ed192a463d87659
Fixed string copy and cat functions and made shortening safer.

Changed out strcpy, strncpy to strlcat and strlcpy. Also added
checks to see if the shortening did work or if it would fail in
advance. Fixed code in util-device and util-runmodes.
src/util-device.c
src/util-device.h
src/util-runmodes.c