From 987de54578ce4053d737c64ea924a32f46a441a7 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 27 Apr 2000 19:44:27 +0000 Subject: [PATCH] Fixed stupid bug in as_path_format(). --- nest/a-path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nest/a-path.c b/nest/a-path.c index e7ff697e..35415221 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;