]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixed stupid bug in as_path_format().
authorMartin Mares <mj@ucw.cz>
Thu, 27 Apr 2000 19:44:27 +0000 (19:44 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 27 Apr 2000 19:44:27 +0000 (19:44 +0000)
nest/a-path.c

index e7ff697e98a7df1794f5cce8cda15ebeb0fc181c..354152219e304ff05e611f40db7316fd71af0d15 100644 (file)
@@ -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;