diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/pop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/pop.c b/lib-src/pop.c index d1b39927738..16823baa1d4 100644 --- a/lib-src/pop.c +++ b/lib-src/pop.c | |||
| @@ -1410,10 +1410,10 @@ fullwrite (fd, buf, nbytes) | |||
| 1410 | int nbytes; | 1410 | int nbytes; |
| 1411 | { | 1411 | { |
| 1412 | char *cp; | 1412 | char *cp; |
| 1413 | int ret; | 1413 | int ret = 0; |
| 1414 | 1414 | ||
| 1415 | cp = buf; | 1415 | cp = buf; |
| 1416 | while ((ret = SEND (fd, cp, nbytes, 0)) > 0) | 1416 | while (nbytes && ((ret = SEND (fd, cp, nbytes, 0)) > 0)) |
| 1417 | { | 1417 | { |
| 1418 | cp += ret; | 1418 | cp += ret; |
| 1419 | nbytes -= ret; | 1419 | nbytes -= ret; |