From: Martin Mares Date: Thu, 27 Apr 2000 19:44:27 +0000 (+0000) Subject: Fixed stupid bug in as_path_format(). X-Git-Tag: v1.2.0~1086 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=987de54578ce4053d737c64ea924a32f46a441a7;p=thirdparty%2Fbird.git Fixed stupid bug in as_path_format(). --- diff --git a/nest/a-path.c b/nest/a-path.c index e7ff697e9..354152219 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;