summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))) {