summaryrefslogtreecommitdiff
path: root/src/libcharon/plugins/whitelist/whitelist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcharon/plugins/whitelist/whitelist.c')
-rw-r--r--src/libcharon/plugins/whitelist/whitelist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcharon/plugins/whitelist/whitelist.c b/src/libcharon/plugins/whitelist/whitelist.c
index 5f511f2c5..0a3a34459 100644
--- a/src/libcharon/plugins/whitelist/whitelist.c
+++ b/src/libcharon/plugins/whitelist/whitelist.c
@@ -80,6 +80,7 @@ static int send_msg(int type, char *id)
{
break;
}
+ msg.id[sizeof(msg.id) - 1] = '\0';
printf("%s\n", msg.id);
}
}