summaryrefslogtreecommitdiffhomepage
path: root/proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto.c')
-rw-r--r--proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto.c b/proto.c
index eaec913..b91fcde 100644
--- a/proto.c
+++ b/proto.c
@@ -287,7 +287,7 @@ static bool
parse_prefix_option(struct interface *iface, const char *str, size_t len)
{
char buf[128] = {0}, *saveptr;
- if (len > sizeof(buf))
+ if (len >= sizeof(buf))
return false;
memcpy(buf, str, len);