Wrong return code.
authorsolar <solar@546481bc-9713-0410-bf18-d3337bbf4a3e>
Thu, 1 Oct 2009 05:42:08 +0000 (05:42 +0000)
committersolar <solar@546481bc-9713-0410-bf18-d3337bbf4a3e>
Thu, 1 Oct 2009 05:42:08 +0000 (05:42 +0000)
git-svn-id: https://srv7.svn-repos.de/dev34/pdclib/trunk@376 546481bc-9713-0410-bf18-d3337bbf4a3e

functions/stdio/fseek.c

index e3d3e7791836e7e92e25b293a6fe7ec853099fbe..43789c8a71b6cca2cf43ffab38ccd22260bc0c26 100644 (file)
@@ -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