summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-27 21:44:27 +0200
committerMartin Mares <mj@ucw.cz>2000-04-27 21:44:27 +0200
commit987de54578ce4053d737c64ea924a32f46a441a7 (patch)
treeae77cd4ca5fd05c2dde7aa668e7cc398de56f56c /nest
parent9165888ad24bdefed6a705219c767558d5091cec (diff)
downloadbird-987de54578ce4053d737c64ea924a32f46a441a7.tar
bird-987de54578ce4053d737c64ea924a32f46a441a7.zip
Fixed stupid bug in as_path_format().
Diffstat (limited to 'nest')
-rw-r--r--nest/a-path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/a-path.c b/nest/a-path.c
index e7ff697..3541522 100644
--- a/nest/a-path.c
+++ b/nest/a-path.c
@@ -44,8 +44,8 @@ void
as_path_format(struct adata *path, byte *buf, unsigned int size)
{
byte *p = path->data;
- byte *e = p + path->length - 8;
- byte *end = buf + size;
+ byte *e = p + path->length;
+ byte *end = buf + size - 8;
int sp = 1;
int l, type, isset, as;