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.

Index: lha-STABLE_1_2-ipv6addr/heartbeat/resource.d/IPv6addr.c
===================================================================
--- lha-STABLE_1_2-ipv6addr.orig/heartbeat/resource.d/IPv6addr.c        
2007-04-19 12:42:11.000000000 +0900
+++ lha-STABLE_1_2-ipv6addr/heartbeat/resource.d/IPv6addr.c     2007-04-19 
12:43:15.000000000 +0900
@@ -363,7 +363,7 @@ find_if(struct in6_addr* addr_target, in
 {
        FILE *f;
        char addr6[40];
-       static char devname[20]="";
+       static char devname[21]="";
        struct in6_addr addr;
        struct in6_addr mask;
        int             plen;

-- 

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to