From 2dd72cf05ed2f00eb655bc9fd3d0ac750ae62524 Mon Sep 17 00:00:00 2001 From: solar Date: Thu, 1 Oct 2009 05:42:08 +0000 Subject: [PATCH] Wrong return code. --- functions/stdio/fseek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/stdio/fseek.c b/functions/stdio/fseek.c index e3d3e77..43789c8 100644 --- a/functions/stdio/fseek.c +++ b/functions/stdio/fseek.c @@ -26,7 +26,7 @@ int fseek( struct _PDCLIB_file_t * _PDCLIB_restrict stream, long offset, int whe { stream->status &= ~ ( _PDCLIB_FREAD | _PDCLIB_FWRITE ); } - return _PDCLIB_seek( stream, offset, whence ); + return ( _PDCLIB_seek( stream, offset, whence ) == offset ) ? 0 : EOF; } #endif -- 2.40.0