summaryrefslogtreecommitdiff
path: root/src/stdio/fseek.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/fseek.c')
-rw-r--r--src/stdio/fseek.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stdio/fseek.c b/src/stdio/fseek.c
index 47388c9a..9f4bd733 100644
--- a/src/stdio/fseek.c
+++ b/src/stdio/fseek.c
@@ -12,8 +12,7 @@ int fseek(FILE *stream, long int offset, int whence)
if (whence != SEEK_SET) {
UNDEFINED("In call to fseek(): Only SEEK_SET is supported for text files");
}
- /* if offset is not previous */
- /* UNDEFINED("fseek() on text files requires an offset previously returned by ftell()"); */
+ ASSERT_PREV(offset, stream->valid_ftell, stream->nvalid_ftell, "ftell");
}
if (whence == SEEK_CUR) {