From: Harald Welte Date: Mon, 21 May 2001 18:20:56 +0000 (+0000) Subject: typo (it's BM_MAX_NLEN, not BM_MAX_LEN) (reported by s I n) X-Git-Tag: v1.2.3~57 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=06d0b25aafaebd5726c222f705ce990e31ff423c;p=thirdparty%2Fiptables.git typo (it's BM_MAX_NLEN, not BM_MAX_LEN) (reported by s I n) --- 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); }