[netfilter-cvslog] r7324 - branches/ulog/ulogd2/filter

pablo at netfilter.org pablo at netfilter.org
Sun Feb 3 12:42:40 CET 2008


Author: pablo at netfilter.org
Date: 2008-02-03 12:42:40 +0100 (Sun, 03 Feb 2008)
New Revision: 7324

Modified:
   branches/ulog/ulogd2/filter/ulogd_filter_PWSNIFF.c
Log:
From: Eric Leblond <eric at inl.fr>: 
Put O at the real end of the string.
Based on Marius Tomaschewski work.


Modified: branches/ulog/ulogd2/filter/ulogd_filter_PWSNIFF.c
===================================================================
--- branches/ulog/ulogd2/filter/ulogd_filter_PWSNIFF.c	2008-02-03 11:41:25 UTC (rev 7323)
+++ branches/ulog/ulogd2/filter/ulogd_filter_PWSNIFF.c	2008-02-03 11:42:40 UTC (rev 7324)
@@ -123,7 +123,7 @@
 			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 @@
 			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;




More information about the netfilter-cvslog mailing list