forked from enlightenment/efl
eina/eina_file - fix eina_file_map_lines() to not drop of one character in the last line.
This commit is contained in:
parent
44988e4798
commit
18be4c50d9
|
@ -1,3 +1,7 @@
|
|||
2013-10-04 ChunEon Park (Hermet)
|
||||
|
||||
* Eina: fix eina_file_map_lines() to not drop of one character in the last line.
|
||||
|
||||
2013-10-02 Cedric Bail
|
||||
|
||||
* Eina: add eina_swap16(), eina_swap32(), eina_swap64().
|
||||
|
|
1
NEWS
1
NEWS
|
@ -258,6 +258,7 @@ Fixes:
|
|||
- Fix memory leak in eina_xattr_value_ls.
|
||||
- Fix magic failure in eina_value_array_count when array has not been allocated.
|
||||
- Fix issue when wchar_t is signed and eina_unicode does negative array lookups.
|
||||
- Eina: fix eina_file_map_lines() to not drop of one character in the last line.
|
||||
* Eet:
|
||||
- Fix PPC (big endian) image codec bug.
|
||||
- Fix leak in eet_pbkdf2_sha1 with OpenSSL.
|
||||
|
|
|
@ -543,7 +543,8 @@ _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 - 1;
|
||||
it->current.length = eol - it->current.start;
|
||||
if (eol < it->end) it->current.length--;
|
||||
|
||||
*data = &it->current;
|
||||
return EINA_TRUE;
|
||||
|
|
Loading…
Reference in New Issue