diff options
author | Hyunho Kang <hhstark.kang@samsung.com> | 2016-12-22 17:11:58 +0900 |
---|---|---|
committer | Hyunho Kang <hhstark.kang@samsung.com> | 2016-12-22 17:29:45 +0900 |
commit | 40df0ae1127e0bfd6f7b89d2a4824d1a50aff7d1 (patch) | |
tree | 8c108ea9fb16b0e30a610659248fd8955bced7a4 | |
parent | f586c3c4f77e83cdd6f3a4967acec87611a31d59 (diff) | |
download | data-control-tizen_3.0.m2.tar.gz data-control-tizen_3.0.m2.tar.bz2 data-control-tizen_3.0.m2.zip |
Fix wrong size memory allocsubmit/tizen_3.0/20161222.093853submit/tizen_3.0/20161222.060248submit/tizen_3.0.m2/20170104.093749accepted/tizen/3.0/wearable/20161223.081650accepted/tizen/3.0/tv/20161223.081629accepted/tizen/3.0/mobile/20161223.081612accepted/tizen/3.0/ivi/20161223.081708accepted/tizen/3.0/common/20161223.110644accepted/tizen/3.0.m2/wearable/20170104.122831accepted/tizen/3.0.m2/tv/20170104.122431accepted/tizen/3.0.m2/mobile/20170104.121936tizen_3.0.m2accepted/tizen_3.0.m2_wearableaccepted/tizen_3.0.m2_tvaccepted/tizen_3.0.m2_mobile
off_t size will be long size in 64bit
Change-Id: I9b6e0adf16a5a9832180d99f99018022a7415dbe
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
-rwxr-xr-x | src/data-control-sql.c | 4 |
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++) { |