diff options
author | gandalf <gandalf> | 2004-01-31 15:33:55 +0000 |
---|---|---|
committer | gandalf <gandalf> | 2004-01-31 15:33:55 +0000 |
commit | b452a970ea8771586a95f6a8253536e48a73d3bc (patch) | |
tree | b29bb39cfef731e863db577f1ff161e4bf5d3f5f /extensions/libipt_helper.c | |
parent | 32be9ea0651809e288d7f44550b2eed7ba582575 (diff) |
Fix even more possibly not zero-terminated strings after copy (Karsten Desler)
Diffstat (limited to 'extensions/libipt_helper.c')
-rw-r--r-- | extensions/libipt_helper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/libipt_helper.c b/extensions/libipt_helper.c index 4b16e02..72660d9 100644 --- a/extensions/libipt_helper.c +++ b/extensions/libipt_helper.c @@ -46,6 +46,7 @@ parse(int c, char **argv, int invert, unsigned int *flags, case '1': check_inverse(optarg, &invert, &invert, 0); strncpy(info->name, optarg, 29); + info->name[29] = '\0'; if (invert) info->invert = 1; *flags = 1; |