Heartbeat STABLE 1.2
changeset 2872:629ac0cd3ea9
[IPv6addr] devname in scan_if() is too short
devname is passed to scanf which will fill in a string of up
to 20 bytes + trailing '\0'. So make devname 21 bytes long accordingly.
devname is passed to scanf which will fill in a string of up
to 20 bytes + trailing '\0'. So make devname 21 bytes long accordingly.
| author | Horms <horms@verge.net.au> |
|---|---|
| date | Fri Apr 20 11:31:15 2007 +0900 (2 years ago) |
| parents | 9dbed9140821 |
| children | 0e4a1b7a0045 |
| files | heartbeat/resource.d/IPv6addr.c |
line diff
1.1 --- a/heartbeat/resource.d/IPv6addr.c Fri Apr 20 11:31:15 2007 +0900
1.2 +++ b/heartbeat/resource.d/IPv6addr.c Fri Apr 20 11:31:15 2007 +0900
1.3 @@ -363,7 +363,7 @@
1.4 {
1.5 FILE *f;
1.6 char addr6[40];
1.7 - static char devname[20]="";
1.8 + static char devname[21]="";
1.9 struct in6_addr addr;
1.10 struct in6_addr mask;
1.11 int plen;
