summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorLuis Fernando Muñoz Mejías <Luis.Fernando.Munoz.Mejias@cern.ch>2010-11-30 13:04:58 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-11-30 16:05:23 +0100
commit0b18c17b2850152203ce9db648ce06212ab67157 (patch)
treeac914ba20e142fcd870164c967a4f96a17e42bda /configure.ac
parentb9151f6a1708b2fb7e9518e73fcf42d86b0364a9 (diff)
downloadrsyslog-0b18c17b2850152203ce9db648ce06212ab67157.tar.gz
rsyslog-0b18c17b2850152203ce9db648ce06212ab67157.tar.xz
rsyslog-0b18c17b2850152203ce9db648ce06212ab67157.zip
Fix a potential missing '\0' on too long strings.
By implementing a trivial strlcpy it's much easier to detect string truncations and react to them. This also gives a noticeable speedup in buffer handling (can be HUGE), since strlcpy() doesn't clear all the buffer entry before writing data. Converted all uses of strncpy() into strlcpy(). Also, we don't need to check for some null pointers, as there are no malloc-like operations in the doAction loop.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions