diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-07-07 21:18:07 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-07-07 21:18:07 +0000 |
commit | 7b64ba6b03150d6a6bfb04ac5e506d93d32ba1d5 (patch) | |
tree | 28ff1ed33a698ba8b8bc75f4f4e778e80812b1fb | |
parent | a975fbf31a5ab32cf6f91aa74dcf70c459f5a2ce (diff) |
Stupid typo that may cause a lot of pain. Found by Patrick Latifi. Thanks.
-rw-r--r-- | usr.sbin/bgpd/mrt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/mrt.c b/usr.sbin/bgpd/mrt.c index e6fb01fc5a7..2eca017029e 100644 --- a/usr.sbin/bgpd/mrt.c +++ b/usr.sbin/bgpd/mrt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mrt.c,v 1.34 2004/07/07 21:15:18 claudio Exp $ */ +/* $OpenBSD: mrt.c,v 1.35 2004/07/07 21:18:06 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -519,7 +519,7 @@ mrt_mergeconfig(struct mrt_head *xconf, struct mrt_head *nconf) LIST_INSERT_HEAD(xconf, xm, entry); } else { /* MERGE */ - if (strlcpy(MRT2MC(xm)->name, MRT2MC(xm)->name, + if (strlcpy(MRT2MC(xm)->name, MRT2MC(m)->name, sizeof(MRT2MC(xm)->name)) >= sizeof(MRT2MC(xm)->name)) fatalx("mrt_mergeconfig: strlcpy"); |