diff options
Diffstat (limited to 'extensions/ebt_string.c')
-rw-r--r-- | extensions/ebt_string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/ebt_string.c b/extensions/ebt_string.c index 9550c41..3deff1b 100644 --- a/extensions/ebt_string.c +++ b/extensions/ebt_string.c @@ -168,7 +168,7 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry, ebt_check_option2(flags, OPT_STRING_ALGO); if (ebt_check_inverse2(optarg)) ebt_print_error2("Unexpected `!' after --string-algo"); - strncpy(info->algo, optarg, XT_STRING_MAX_ALGO_NAME_SIZE); + snprintf(info->algo, sizeof(info->algo), "%s", optarg); break; case STRING_ICASE: ebt_check_option2(flags, OPT_STRING_ICASE); |