summaryrefslogtreecommitdiffstats
path: root/src/opk
diff options
context:
space:
mode:
Diffstat (limited to 'src/opk')
-rw-r--r--src/opk/write.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/opk/write.c b/src/opk/write.c
index 12a36c6..1b490ee 100644
--- a/src/opk/write.c
+++ b/src/opk/write.c
@@ -34,8 +34,7 @@ _opkg_opk_opk_write_file(void *user_data, size_t size)
{
struct opkg_opk_opk *opk = user_data;
- if (fwrite(opk->file_buffer, 1, sizeof(opk->file_buffer), opk->file) ==
- size) {
+ if (fwrite(opk->file_buffer, 1, size, opk->file) == size) {
return OPKG_OPK_OK;
} else {
return OPKG_OPK_ERROR;