Skip to content
Snippets Groups Projects
Commit b6e9ee24 authored by Natanael Copa's avatar Natanael Copa
Browse files

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

parent be9fa503
No related branches found
No related tags found
No related merge requests found
...@@ -115,6 +115,7 @@ static ssize_t full_read(int fd, void *buf, size_t count) ...@@ -115,6 +115,7 @@ static ssize_t full_read(int fd, void *buf, size_t count)
if (n <= 0) if (n <= 0)
break; break;
buf += n; buf += n;
total += n;
count -= n; count -= n;
} while (1); } while (1);
...@@ -136,6 +137,7 @@ static ssize_t full_write(int fd, const void *buf, size_t count) ...@@ -136,6 +137,7 @@ static ssize_t full_write(int fd, const void *buf, size_t count)
if (n <= 0) if (n <= 0)
break; break;
buf += n; buf += n;
total += n;
count -= n; count -= n;
} while (1); } while (1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment