]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
typo (it's BM_MAX_NLEN, not BM_MAX_LEN) (reported by s I n)
authorHarald Welte <laforge@gnumonks.org>
Mon, 21 May 2001 18:20:56 +0000 (18:20 +0000)
committerHarald Welte <laforge@gnumonks.org>
Mon, 21 May 2001 18:20:56 +0000 (18:20 +0000)
extensions/libipt_string.c

index 51e5828e81432837a0e74c1adcc85b9c927940de..279f9be1b66e8b25cae60ae8bd75d63c220c6e3e 100644 (file)
@@ -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);
 }