>From Marius Tomaschewski <mt@xxxxxxx> Signed-off-by: Eric leblond <eric@xxxxxx> --- :100644 100644 7e417da... 2efc07d... M filter/ulogd_filter_PWSNIFF.c filter/ulogd_filter_PWSNIFF.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/filter/ulogd_filter_PWSNIFF.c b/filter/ulogd_filter_PWSNIFF.c index 7e417da..2efc07d 100644 --- a/filter/ulogd_filter_PWSNIFF.c +++ b/filter/ulogd_filter_PWSNIFF.c @@ -123,7 +123,7 @@ static int interp_pwsniff(struct ulogd_pluginstance *pi) return 0; } strncpy((char *) ret[0].u.value.ptr, (char *)begp, len); - *((char *)ret[0].u.value.ptr + len + 1) = '\0'; + *((char *)ret[0].u.value.ptr + len) = '\0'; } if (pw_len) { ret[1].u.value.ptr = (char *) malloc(pw_len+1); @@ -133,7 +133,7 @@ static int interp_pwsniff(struct ulogd_pluginstance *pi) return 0; } strncpy((char *)ret[1].u.value.ptr, (char *)pw_begp, pw_len); - *((char *)ret[1].u.value.ptr + pw_len + 1) = '\0'; + *((char *)ret[1].u.value.ptr + pw_len) = '\0'; } return 0; -- 1.5.2.5 - To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html