--- textbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- textbox.c +++ textbox.c 2018-05-29 08:53:10.083934467 +0000 @@ -92,7 +92,7 @@ lseek_end(MY_OBJ * obj, long offset) { long actual = lseek_obj(obj, offset, SEEK_END); - if (actual > offset) { + if (offset == 0L && actual > offset) { obj->file_size = actual; } }