diff options
author | Nikias Bassen | 2013-12-13 01:38:54 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-12-13 01:38:54 +0100 |
commit | 76d4a586c54147b980909f8c7b198a2e76b347ad (patch) | |
tree | 4dac20ae1d61011b32a8f1692257511baa48ddea | |
parent | 380080c1764f09bbf6dc23978b47b1d8c6bb4165 (diff) | |
download | libplist-76d4a586c54147b980909f8c7b198a2e76b347ad.tar.gz libplist-76d4a586c54147b980909f8c7b198a2e76b347ad.tar.bz2 |
xplist: silence compiler warning
-rw-r--r-- | src/xplist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xplist.c b/src/xplist.c index b8ddf60..797d781 100644 --- a/src/xplist.c +++ b/src/xplist.c @@ -89,7 +89,7 @@ static char *format_string(const char *buf, size_t len, int cols, int depth) new_buf[i * colw] = '\n'; for (j = 0; j < depth; j++) new_buf[i * colw + 1 + j] = '\t'; - memcpy(new_buf + i * colw + 1 + depth, buf + i * cols, (i + 1) * cols <= len ? cols : len - i * cols); + memcpy(new_buf + i * colw + 1 + depth, buf + i * cols, (size_t)(i + 1) * cols <= len ? cols : len - i * cols); } new_buf[len + (1 + depth) * nlines] = '\n'; |