freebsd-ports/net/mrouted/files/patch-vif.c
Hiroki Sato 878145a4ff Update to 3.9.6 and fix $MASTER_SITES. Take maintainership.
Approved by:	johans
Feature safe:	yes
2012-11-30 17:03:08 +00:00

21 lines
697 B
C

--- vif.c.orig 2012-11-30 23:59:58.000000000 +0900
+++ vif.c 2012-12-01 00:02:20.000000000 +0900
@@ -1051,6 +1051,7 @@
static int info_version(u_char *p)
{
int len;
+ size_t lenv;
*p++ = DVMRP_INFO_VERSION;
p++; /* skip over length */
@@ -1062,7 +1063,9 @@
* as long as 100 bytes, but it's better to limit the amount
* of data copied to send_buf since we do not want to risk
* sending MAX size frames. */
- len = strlcpy((char *)p, versionstring, sizeof(versionstring));
+ /* XXX: use lenv to make clang happy. */
+ lenv = sizeof(versionstring);
+ len = strlcpy((char *)p, versionstring, lenv);
return ((len + 3) / 4);
}