Skip to content

Commit e18ea50

Browse files
committed
Fixed warning for string truncation (false positive).
1 parent 4adf503 commit e18ea50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ void printAddress(std::ostream& os,
490490
const bool port,
491491
const bool hideScope)
492492
{
493-
static char str[128];
493+
static char str[160];
494494

495495
if(address2string(address, (char*)&str, sizeof(str), port, hideScope)) {
496496
os << str;

0 commit comments

Comments
 (0)