summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2015-05-18 01:25:38 +0200
committerDirk Engling <erdgeist@erdgeist.org>2015-05-18 01:25:38 +0200
commit3083552b2d9eee74f031386f90e49b9f97ae4190 (patch)
treef32e4a6cddb3e972ff0ea3335ab42ea0cce124d1
parent8194bc916918318a6d129e0f1bfeb8ba1bac1900 (diff)
Fix final pointer for end of file
-rw-r--r--el.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/el.c b/el.c
index 87dd7fb..0af852a 100644
--- a/el.c
+++ b/el.c
@@ -99,6 +99,7 @@ static uint8_t * scanforline( EL_FILE *file, const long lineno, long *size ) {
99 // store pointer 99 // store pointer
100 if( scanline == e_o_f ) { 100 if( scanline == e_o_f ) {
101 file->all_lines_scanned = 1; 101 file->all_lines_scanned = 1;
102 file->index[file->index_filled] = e_o_f;
102 if( file->index_filled == lineno + 1 ) 103 if( file->index_filled == lineno + 1 )
103 goto return_line; 104 goto return_line;
104 return NULL; 105 return NULL;