poorman: Fix PVS 922
Remove unneed appending a null character, since inet_ntop() adds null to 'addr'. Change-Id: I21f5be7f737badd388f36a6dcf56a3b446b5d91c Reviewed-on: https://review.haiku-os.org/795 Reviewed-by: Barrett17 <[email protected]>
This commit is contained in:
@@ -251,7 +251,6 @@ PoorManWindow::MessageReceived(BMessage* message)
|
||||
struct in_addr sin_addr;
|
||||
sin_addr.s_addr = address;
|
||||
if (inet_ntop(AF_INET, &sin_addr, addr, sizeof(addr)) != NULL) {
|
||||
addr[strlen(addr)] = '\0';
|
||||
line << '(' << addr << ") ";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user