diff options
author | Martin Mares <mj@ucw.cz> | 2000-04-27 19:44:27 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-04-27 19:44:27 +0000 |
commit | 987de54578ce4053d737c64ea924a32f46a441a7 (patch) | |
tree | ae77cd4ca5fd05c2dde7aa668e7cc398de56f56c /nest/a-path.c | |
parent | 9165888ad24bdefed6a705219c767558d5091cec (diff) |
Fixed stupid bug in as_path_format().
Diffstat (limited to 'nest/a-path.c')
-rw-r--r-- | nest/a-path.c | 4 |
1 files 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; |