summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunho Kang <hhstark.kang@samsung.com>2016-12-22 17:11:58 +0900
committerHyunho Kang <hhstark.kang@samsung.com>2016-12-22 17:29:45 +0900
commit40df0ae1127e0bfd6f7b89d2a4824d1a50aff7d1 (patch)
tree8c108ea9fb16b0e30a610659248fd8955bced7a4
parentf586c3c4f77e83cdd6f3a4967acec87611a31d59 (diff)
downloaddata-control-tizen_3.0.m2.tar.gz
data-control-tizen_3.0.m2.tar.bz2
data-control-tizen_3.0.m2.zip
off_t size will be long size in 64bit Change-Id: I9b6e0adf16a5a9832180d99f99018022a7415dbe Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
-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++) {