diff --git a/example/scp_write_nonblock.c b/example/scp_write_nonblock.c index 801f86c..df24384 100644 --- a/example/scp_write_nonblock.c +++ b/example/scp_write_nonblock.c @@ -196,8 +196,6 @@ int main(int argc, char *argv[]) sent += rc; } } while (rc > 0 && sent < nread); - - nread -= sent; } while (1); fprintf(stderr, "Sending EOF\n");