|
|
| version 1.1.1.1, 2012/02/21 23:10:48 | version 1.1.1.1.2.1, 2013/07/22 00:02:45 |
|---|---|
| Line 1051 void accept_info_request(u_int32 src, u_int32 UNUSED d | Line 1051 void accept_info_request(u_int32 src, u_int32 UNUSED d |
| static int info_version(u_char *p) | static int info_version(u_char *p) |
| { | { |
| int len; | int len; |
| size_t lenv; | |
| *p++ = DVMRP_INFO_VERSION; | *p++ = DVMRP_INFO_VERSION; |
| p++; /* skip over length */ | p++; /* skip over length */ |
| Line 1062 static int info_version(u_char *p) | Line 1063 static int info_version(u_char *p) |
| * as long as 100 bytes, but it's better to limit the amount | * 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 | * of data copied to send_buf since we do not want to risk |
| * sending MAX size frames. */ | * 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); | return ((len + 3) / 4); |
| } | } |