summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/data-control-sql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data-control-sql.c b/src/data-control-sql.c
index 139043f..def4f47 100755
--- a/src/data-control-sql.c
+++ b/src/data-control-sql.c
@@ -527,7 +527,7 @@ static int __recv_sql_select_process(bundle *kb, int fd, resultset_cursor *curso
}
cursor->resultset_row_count = row_count;
- cursor->row_offset_list = (off_t *)calloc(row_count, sizeof(int));
+ cursor->row_offset_list = (off_t *)calloc(row_count, sizeof(off_t));
if (cursor->row_offset_list == NULL) {
LOGE("Out of memory. can not alloc row_offset_list.");
goto out;
@@ -538,7 +538,7 @@ static int __recv_sql_select_process(bundle *kb, int fd, resultset_cursor *curso
LOGE("resultset_content_offset : %d", cursor->resultset_content_offset);
- sqlite3_int64 row_offset = 0;
+ off_t row_offset = 0;
for (i = 0; i < row_count; i++) {
row_offset = 0;
for (j = 0; j < column_count; j++) {