]> pd.if.org Git - pdclib/commitdiff
Wrong return code.
authorsolar <unknown>
Thu, 1 Oct 2009 05:42:08 +0000 (05:42 +0000)
committersolar <unknown>
Thu, 1 Oct 2009 05:42:08 +0000 (05:42 +0000)
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