diff options
Diffstat (limited to 'core.c')
-rw-r--r-- | core.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |