]> git.ipfire.org Git - thirdparty/suricata.git/commit
Minor optimization in time caching code. 535/head
authorKen Steele <ken@tilera.com>
Fri, 6 Sep 2013 17:56:18 +0000 (13:56 -0400)
committerKen Steele <ken@tilera.com>
Mon, 9 Sep 2013 16:17:46 +0000 (12:17 -0400)
commit0861d3a2a3fd9d4d20a150a8e5d20f71b03ff6a7
tree37033468a2a0f2de34e4c4be65203f637e37978f
parent49dcb0ca846cfa2661a25aa5f626904b2900e6da
Minor optimization in time caching code.

Reduced the size of the cached string buffer from 128 to 32, which is
still larger than the largest possible time string, which is 26
characters.

Added a check for the user passing in an output buffer that is smaller
than the cached string. Previously, the code would have copied past
the end of the users buffer.
src/util-time.c