blob: 3b8918c226d27fc925349df08a7c8926c523778b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-di,v 1.2 2009/02/14 16:17:06 spz Exp $
--- src/irr/birdwhoisc.cc.orig 2006-10-09 18:05:14.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())
|