projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Wrong return code.
[fw/pdclib]
/
functions
/
stdio
/
fseek.c
diff --git
a/functions/stdio/fseek.c
b/functions/stdio/fseek.c
index e3d3e7791836e7e92e25b293a6fe7ec853099fbe..43789c8a71b6cca2cf43ffab38ccd22260bc0c26 100644
(file)
--- 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 );
}
{
stream->status &= ~ ( _PDCLIB_FREAD | _PDCLIB_FWRITE );
}
- return
_PDCLIB_seek( stream, offset, whence )
;
+ return
( _PDCLIB_seek( stream, offset, whence ) == offset ) ? 0 : EOF
;
}
#endif
}
#endif