summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_length.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libxt_length.c')
-rw-r--r--extensions/libxt_length.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_length.c b/extensions/libxt_length.c
index e350431c..0e196d78 100644
--- a/extensions/libxt_length.c
+++ b/extensions/libxt_length.c
@@ -26,7 +26,7 @@ parse_length(const char *s)
{
unsigned int len;
- if (string_to_number(s, 0, 0xFFFF, &len) == -1)
+ if (string_to_number(s, 0, UINT16_MAX, &len) == -1)
exit_error(PARAMETER_PROBLEM, "length invalid: `%s'\n", s);
else
return len;