summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-02-27 19:20:29 +0900
committerHermet Park <hermetpark@gmail.com>2019-02-27 19:20:29 +0900
commit25470a56d371b12877b461f4af06a86d2022a05a (patch)
tree30f1dd87f00a8f32ff0d3970b06e339001ba6b1b
parent7c8210d8a678461b3f0fab7b273474bc5e0fb191 (diff)
eio: fix not to overflow data by performing arithmetic.
-rw-r--r--src/lib/eio/eio_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eio/eio_dir.c b/src/lib/eio/eio_dir.c
index af2125a735..68412b6f8a 100644
--- a/src/lib/eio/eio_dir.c
+++ b/src/lib/eio/eio_dir.c
@@ -667,7 +667,7 @@ _eio_dir_rmrf_heavy(void *data, Ecore_Thread *thread)
667 667
668 /* init counter */ 668 /* init counter */
669 step = 0; 669 step = 0;
670 count = eina_list_count(rmrf->files) + eina_list_count(rmrf->dirs) + 1; 670 count = ((long long) eina_list_count(rmrf->files)) + ((long long) eina_list_count(rmrf->dirs)) + 1;
671 671
672 EINA_LIST_FREE(rmrf->files, file) 672 EINA_LIST_FREE(rmrf->files, file)
673 { 673 {