aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-02-16 11:09:23 -0600
committerRob Landley <rob@landley.net>2014-02-16 11:09:23 -0600
commit1fb3ae7075ab9d198b757f7da5cc9c748abc3574 (patch)
tree883cbdd98ecc483f6a5a948b1709e878de5bbdca /lib
parent33b022d873abc5255e22bf70687e5c0a260fb107 (diff)
downloadtoybox-1fb3ae7075ab9d198b757f7da5cc9c748abc3574.tar.gz
Various cleanups found by Tom Sparrow's static analysis.
Diffstat (limited to 'lib')
-rw-r--r--lib/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.c b/lib/lib.c
index 6a9a0bdd..1126e11e 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -81,7 +81,7 @@ ssize_t writeall(int fd, void *buf, size_t len)
{
size_t count = 0;
while (count<len) {
- int i = write(fd, buf+count, len-count);
+ int i = write(fd, count+(char *)buf, len-count);
if (i<1) return i;
count += i;
}