eina/file - revert 18be4c50d9990c82ed9ce4269b7820e61f772699
authorChunEon Park <hermet@hermet.pe.kr>
Sat, 31 May 2014 09:34:48 +0000 (18:34 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Sat, 31 May 2014 09:34:48 +0000 (18:34 +0900)
I realized that's not a bug in eina but user usage was inccorect.
revert the patch

@fix

src/lib/eina/eina_file_common.c

index 7d42b63..4e93a67 100644 (file)
@@ -573,8 +573,7 @@ _eina_file_map_lines_iterator_next(Eina_Lines_Iterator *it, void **data)
    it->current.start = it->current.end;
 
    it->current.end = eol;
-   it->current.length = eol - it->current.start;
-   if (eol < it->end) it->current.length--;
+   it->current.length = eol - it->current.start - 1;
 
    *data = &it->current;
    return EINA_TRUE;