--- embedaddon/mrouted/vif.c 2012/02/21 23:10:48 1.1.1.1 +++ embedaddon/mrouted/vif.c 2013/07/22 00:02:45 1.1.1.1.2.1 @@ -1051,6 +1051,7 @@ void accept_info_request(u_int32 src, u_int32 UNUSED d static int info_version(u_char *p) { int len; + size_t lenv; *p++ = DVMRP_INFO_VERSION; p++; /* skip over length */ @@ -1062,7 +1063,9 @@ static int info_version(u_char *p) * 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); }