Differences From Artifact [2af8b97fea]:
- File scp.c — part of check-in [5ec3c6472e] at 2003-10-12 08:16:39 on branch trunk — Remove all the "assert(len>0)" which forbade zero-length writes across the from_backend() interface, after having made all implementations safe against being called with len==0 and possibly-NULL/undefined "data". (This includes making misc.c:bufchain_add() more robust in this area.) Assertion was originally added 2002-03-01; e.g., see plink.c:1.53 [r1571]. I believe this now shouldn't break anything. This should hopefully make `ppk-empty-comment' finally GO AWAY. (Tested with Unix PuTTY.) (user: jacob size: 54241)
To Artifact [4552b39f43]:
- File scp.c — part of check-in [c43e506a03] at 2003-12-03 16:45:32 on branch trunk — fflush(stdout) after each line of stats (user: jacob size: 54259)
| ︙ | |||
462 463 464 465 466 467 468 469 470 471 472 473 474 475 | 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 | + + |
name, done / 1024, ratebs / 1024.0, etastr, pct);
if (len < prev_stats_len)
printf("%*s", prev_stats_len - len, "");
prev_stats_len = len;
if (done == size)
printf("\n");
fflush(stdout);
}
}
/*
* Find a colon in str and return a pointer to the colon.
* This is used to separate hostname from filename.
*/
|
| ︙ |