X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=proto.c;h=b91fcde412e27a69ab72c9e62f24a03582c7b77d;hp=eaec91325653da91a74f9f589f52b1f50b443157;hb=2475541608efec919ad3cbd0613f0f51fdbd50fd;hpb=92d2aea918f650f309f753349457028032d53280 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);