summaryrefslogtreecommitdiff
path: root/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'core.c')
-rw-r--r--core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core.c b/core.c
index 1fe2891..7d2600b 100644
--- a/core.c
+++ b/core.c
@@ -28,7 +28,7 @@ int fd_seek( int fd, off_t offset, int whence )
off_new = lseek( fd, offset, whence );
if ( errno != 0)
{
- printf("Cannot seek %s\n", strerror(errno));
+ printf("!Cannot seek %s\n", strerror(errno));
errno = 0; //why i need to reset it?
return -1;
}
@@ -145,7 +145,7 @@ int file_seek( file_t *ft, off_t offset )
ret = fd_seek( ft->fd, offset, FD_SEEK_CUR );
- if (ret == 0)
+ if (ret >= 0)
{
new_off = fd_pos( ft->fd );
if (new_off > ft->size)