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:
Murai Takashi
2018-12-25 17:49:30 +00:00
committed by Barrett17
parent 26c68df839
commit 12dba4e70f
-1
View File
@@ -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 << ") ";
}
}