]> git.ipfire.org Git - thirdparty/suricata.git/commit
Reworked how shortening should be performed.
authormaxtors <moe.andreas@gmail.com>
Thu, 16 Apr 2015 20:22:54 +0000 (22:22 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 2 May 2016 08:10:40 +0000 (10:10 +0200)
commita17ac21077a9b3264020793e7a67518b339a3680
tree7a58d673560a1ae07665b01e963fdbe148d6302e
parent88a6e7960799370b9e9f56a94a3be630043e3c3d
Reworked how shortening should be performed.

The shortening of the interfacenames is now dependent on the
size of the destination buffer, so that this can be easily
changed in the future. The process uses snprintf and strlcat.

Also changed the buffer sizes in the util-runmodes to 12
so that they can hold 11 chars + null terminator.
src/util-device.c
src/util-runmodes.c