blob: 711739bd0566d97c860ce8a28e4e30823d4499d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-cw,v 1.1 2007/09/07 21:26:32 spz Exp $
--- src/rpsl/rpsl/rpsl_item.cc.orig 2006-06-08 17:16:26.000000000 +0200
+++ src/rpsl/rpsl/rpsl_item.cc
@@ -67,14 +67,18 @@ ostream &Item::print(ostream &out) const
}
ostream &ItemASNO::print(ostream &out) const {
- out << "AS" << asno;
+ char buffer[64];
+ asnum_string(buffer, asno);
+ out << "AS" << buffer;
return out;
}
Buffer *ItemASNO::bufferize(Buffer *buf, bool lcase) const {
+ char buffer[64];
+ asnum_string(buffer, asno);
if (!buf)
buf = new Buffer;
- buf->appendf("as%d", asno);
+ buf->appendf(buffer);
return buf;
}
|