summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
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;