diff options
author | Karsten Desler <kdesler@soohrt.org> | 2004-01-31 15:33:55 +0000 |
---|---|---|
committer | Martin Josefsson <gandalf@wlug.westbo.se> | 2004-01-31 15:33:55 +0000 |
commit | 073df8feb0a8c4023ce40138e519ac9b341b1ca2 (patch) | |
tree | b29bb39cfef731e863db577f1ff161e4bf5d3f5f /extensions/libipt_XOR.c | |
parent | 617b7dd9ef2870e85694ad5212c61fa7c5986ec9 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/libipt_XOR.c b/extensions/libipt_XOR.c index 3b05a309..47d8baac 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': |