Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Teka101 committed Jan 12, 2018
1 parent b5d88f5 commit 9e59235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SftpServer/Sftp.c
Expand Up @@ -426,7 +426,7 @@ void DoRead()
status = SSH2_FX_FAILURE;
else if ((hdl = HandleGetFile(h)) != NULL)
{
if (hdl->fileIsText == 0 && lseek(hdl->fd, off, SEEK_SET) < 0)
if (hdl->fileIsText == 0 && lseek(hdl->fd, off, SEEK_SET) == (off_t) -1)
status = errnoToPortable(errno);
else
{
Expand Down

0 comments on commit 9e59235

Please sign in to comment.