wget: -O FILE is allowed to overwrite existing file (compat)
[oweals/busybox.git] / networking / traceroute.c
index 21921e56d076318a1220bc02ade1fe171767bb02..e8d486f4ced2a29304c6292d4cf3cf19a6bcaea1 100644 (file)
@@ -543,7 +543,7 @@ wait_for_reply(int sock, struct sockaddr_in *fromp)
 
        pfd[0].fd = sock;
        pfd[0].events = POLLIN;
-       if (poll(pfd, 1, waittime * 1000) > 0)
+       if (safe_poll(pfd, 1, waittime * 1000) > 0)
                cc = recvfrom(sock, packet, sizeof(packet), 0,
                            (struct sockaddr *)fromp, &fromlen);
        return cc;
@@ -1322,7 +1322,7 @@ int traceroute_main(int argc, char **argv)
                                printf(" *");
                        (void)fflush(stdout);
                }
-               putchar('\n');
+               bb_putchar('\n');
                if (got_there ||
                    (unreachable > 0 && unreachable >= nprobes - 1))
                        break;