blob: 745523fdf332b7b89d1de568f708d363e2c433f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-di,v 1.1 2007/09/07 21:26:34 spz Exp $
--- src/irr/birdwhoisc.cc.orig 2007-09-07 22:15:31.000000000 +0200
+++ src/irr/birdwhoisc.cc
@@ -429,7 +429,11 @@ int BirdWhoisClient::getSourceOrigin(cha
AttrGenericIterator<ItemASNO> itrOrigin(itrObject, "origin");
AttrGenericIterator<ItemWORD> itrSource(itrObject, "source");
if (itrOrigin && itrSource)
- cBuffer.append("%s AS%d\n", itrSource()->word, itrOrigin()->asno);
+ {
+ char buf[64];
+ asnum_string(buf, itrOrigin()->asno);
+ cBuffer.append("%s %s\n", itrSource()->word, buf);
+ }
}
}
if (cBuffer.empty())
|