From 3083552b2d9eee74f031386f90e49b9f97ae4190 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 18 May 2015 01:25:38 +0200 Subject: Fix final pointer for end of file --- el.c | 1 + 1 file changed, 1 insertion(+) (limited to 'el.c') 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 ) { // store pointer if( scanline == e_o_f ) { file->all_lines_scanned = 1; + file->index[file->index_filled] = e_o_f; if( file->index_filled == lineno + 1 ) goto return_line; return NULL; -- cgit v1.2.3