From: Sebastian Harl Date: Thu, 2 Oct 2008 12:53:06 +0000 (+0200) Subject: iptables plugin, utils_ignorelist: Fixed an off-by-one error each. X-Git-Tag: collectd-4.5.1~9 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=ee9507500f738d21858f76128501772d212c069c;hp=ee9507500f738d21858f76128501772d212c069c;p=collectd.git iptables plugin, utils_ignorelist: Fixed an off-by-one error each. Those were introduced when unifying the string handling in commit 5f9ec13b in cases where the exact length of the string to be copied is passed to sstrncpy instead of the size of the destination buffer. In case of the iptables plugin this prevented the table or chain name to match correctly as the user configuration was truncated. In case of the ignorelist a given regex was truncated. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster ---