summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_file_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eina/eina_file_common.c b/src/lib/eina/eina_file_common.c
index 5d7ef11c47..ec9cac8a6e 100644
--- a/src/lib/eina/eina_file_common.c
+++ b/src/lib/eina/eina_file_common.c
@@ -543,7 +543,8 @@ _eina_file_map_lines_iterator_next(Eina_Lines_Iterator *it, void **data)
543 it->current.start = it->current.end; 543 it->current.start = it->current.end;
544 544
545 it->current.end = eol; 545 it->current.end = eol;
546 it->current.length = eol - it->current.start - 1; 546 it->current.length = eol - it->current.start;
547 if (eol < it->end) it->current.length--;
547 548
548 *data = &it->current; 549 *data = &it->current;
549 return EINA_TRUE; 550 return EINA_TRUE;