abuild-tar: fix for full_read(), full_write()

This commit is contained in:
Natanael Copa 2009-07-20 17:41:04 +00:00
parent be9fa503bc
commit b6e9ee2474
1 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,7 @@ static ssize_t full_read(int fd, void *buf, size_t count)
if (n <= 0)
break;
buf += n;
total += n;
count -= n;
} while (1);
@ -136,6 +137,7 @@ static ssize_t full_write(int fd, const void *buf, size_t count)
if (n <= 0)
break;
buf += n;
total += n;
count -= n;
} while (1);