summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_string.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2001-05-21 18:20:56 +0000
committerHarald Welte <laforge@gnumonks.org>2001-05-21 18:20:56 +0000
commit06d0b25aafaebd5726c222f705ce990e31ff423c (patch)
treea845b0dcb4b266a04150f10a6d1dd930a0ae44ae /extensions/libipt_string.c
parent97b3fdef41a009e54a0595b78c57f93b63f92469 (diff)
typo (it's BM_MAX_NLEN, not BM_MAX_LEN) (reported by s I n)
Diffstat (limited to 'extensions/libipt_string.c')
-rw-r--r--extensions/libipt_string.c2
1 files changed, 1 insertions, 1 deletions
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);
}