diff options
author | Nikias Bassen | 2013-12-13 01:54:00 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-12-13 01:54:00 +0100 |
commit | fc3bc57f354ef3019413e0bd5771212060c7aab5 (patch) | |
tree | 470ff9e2536df859f11f2c434a7e9467e1d0bc54 /src | |
parent | 554e891a7f3aa2f1cd0b3d70d8427d9ad6ff5d05 (diff) | |
download | libplist-fc3bc57f354ef3019413e0bd5771212060c7aab5.tar.gz libplist-fc3bc57f354ef3019413e0bd5771212060c7aab5.tar.bz2 |
xplist: fix another compiler warning with cast
Diffstat (limited to 'src')
-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 797d781..653cf49 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, (size_t)(i + 1) * cols <= len ? cols : len - i * cols); + memcpy(new_buf + i * colw + 1 + depth, buf + i * cols, (size_t)(i + 1) * cols <= len ? (size_t)cols : len - i * cols); } new_buf[len + (1 + depth) * nlines] = '\n'; |