summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_XOR.c
diff options
context:
space:
mode:
authorgandalf <gandalf>2004-01-31 15:33:55 +0000
committergandalf <gandalf>2004-01-31 15:33:55 +0000
commitb452a970ea8771586a95f6a8253536e48a73d3bc (patch)
treeb29bb39cfef731e863db577f1ff161e4bf5d3f5f /extensions/libipt_XOR.c
parent32be9ea0651809e288d7f44550b2eed7ba582575 (diff)
Fix even more possibly not zero-terminated strings after copy (Karsten Desler)
Diffstat (limited to 'extensions/libipt_XOR.c')
-rw-r--r--extensions/libipt_XOR.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/libipt_XOR.c b/extensions/libipt_XOR.c
index 3b05a30..47d8baa 100644
--- a/extensions/libipt_XOR.c
+++ b/extensions/libipt_XOR.c
@@ -47,6 +47,7 @@ static int parse(int c, char **argv, int invert, unsigned int *flags,
switch (c) {
case '1':
strncpy(info->key, optarg, 30);
+ info->key[29] = '\0';
*flags |= IPT_KEY_SET;
break;
case '2':