summaryrefslogtreecommitdiffstats
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>1999-04-14 14:47:18 +0200
committerOndrej Filip <feela@network.cz>1999-04-14 14:47:18 +0200
commitb31568a516142e905712bad498914fb6a82dc25b (patch)
tree50ab126423f95277e33be43952ea1619cc74b560 /proto/ospf
parent4c5e5e3a1c438cb2e92535e3fabc458aa0d6deb3 (diff)
downloadbird-b31568a516142e905712bad498914fb6a82dc25b.tar
bird-b31568a516142e905712bad498914fb6a82dc25b.zip
Small bug fix in memcpy.
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/ospf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c
index c0dc2da..6008eeb 100644
--- a/proto/ospf/ospf.c
+++ b/proto/ospf/ospf.c
@@ -190,7 +190,7 @@ ospf_if_notify(struct proto *p, unsigned flags, struct iface *new, struct iface
debug(" OSPF: using interface %s.\n", new->name);
/* FIXME: Latter I'll use config - this is incorrect */
ifa=mb_alloc(p->pool, sizeof(struct ospf_iface));
- memcpy(ifa, new, sizeof(struct ospf_iface));
+ memcpy(ifa, new, sizeof(struct iface));
add_tail(&((struct proto_ospf *)p)->iface_list, NODE ifa);
ospf_iface_default(ifa);
add_wait_timer(ifa,p->pool,0);