summaryrefslogtreecommitdiff
path: root/lib/libalpm/util.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-05-14 19:38:58 -0500
committerDan McGee <dan@archlinux.org>2008-05-14 19:38:58 -0500
commitbf2964dc5841f49d1d5ab60181b0caa4670c1874 (patch)
tree1f6b1d80c07d28cdf2521396e89c62a35ef98544 /lib/libalpm/util.c
parentfb09d35e6a24ef433005728c77453bce99efd010 (diff)
downloadpacman-bf2964dc5841f49d1d5ab60181b0caa4670c1874.tar.xz
Fix compilation warning on x86_64
Glad we have so many developers using this as their native architecture. int/size_t issue here. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/util.c')
-rw-r--r--lib/libalpm/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 65b6372a..55bd46a8 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -238,7 +238,7 @@ int _alpm_copyfile(const char *src, const char *dest)
return(1);
}
- CALLOC(buf, 1, CPBUFSIZE, ret = 1; goto cleanup;);
+ CALLOC(buf, (size_t)CPBUFSIZE, (size_t)1, ret = 1; goto cleanup;);
/* do the actual file copy */
while((len = fread(buf, 1, CPBUFSIZE, in))) {