aboutsummaryrefslogtreecommitdiff
path: root/networking/netstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/netstat.c')
-rw-r--r--networking/netstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/netstat.c b/networking/netstat.c
index 02f4cc7cc..1303d3f3d 100644
--- a/networking/netstat.c
+++ b/networking/netstat.c
@@ -622,7 +622,7 @@ static int FAST_FUNC unix_do_one(char *line)
622 622
623 /* TODO: currently we stop at first NUL byte. Is it a problem? */ 623 /* TODO: currently we stop at first NUL byte. Is it a problem? */
624 line += path_ofs; 624 line += path_ofs;
625 *strchrnul(line, '\n') = '\0'; 625 chomp(line);
626 while (*line) 626 while (*line)
627 fputc_printable(*line++, stdout); 627 fputc_printable(*line++, stdout);
628 bb_putchar('\n'); 628 bb_putchar('\n');