aboutsummaryrefslogtreecommitdiffstats
path: root/main/ulogd/fix-pluginit.patch
blob: 030313068a30972e6f5f0007e6ec73ce68afa674 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ru ulogd-2.0.5.orig/src/ulogd.c ulogd-2.0.5/src/ulogd.c
--- ulogd-2.0.5.orig/src/ulogd.c	2016-03-15 16:15:23.743995611 +0200
+++ ulogd-2.0.5/src/ulogd.c	2016-03-16 15:59:31.459082159 +0200
@@ -571,7 +571,7 @@
 	INIT_LLIST_HEAD(&pi->plist);
 	pi->plugin = pl;
 	pi->stack = stack;
-	memcpy(pi->id, pi_id, sizeof(pi->id));
+	strncpy(pi->id, pi_id, sizeof(pi->id));
 
 	ptr = (void *)pi + sizeof(*pi);