From 06d0b25aafaebd5726c222f705ce990e31ff423c Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 21 May 2001 18:20:56 +0000 Subject: typo (it's BM_MAX_NLEN, not BM_MAX_LEN) (reported by s I n) --- extensions/libipt_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions') diff --git a/extensions/libipt_string.c b/extensions/libipt_string.c index 51e5828e..279f9be1 100644 --- a/extensions/libipt_string.c +++ b/extensions/libipt_string.c @@ -44,7 +44,7 @@ init(struct ipt_entry_match *m, unsigned int *nfcache) static void parse_string(const unsigned char *s, struct ipt_string_info *info) { - if (strlen(s) <= BM_MAX_LEN) strcpy(info->string, s); + if (strlen(s) <= BM_MAX_NLEN) strcpy(info->string, s); else exit_error(PARAMETER_PROBLEM, "STRING too long `%s'", s); } -- cgit v1.2.3