Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/MtpLocalFileCopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ off_t MtpLocalFileCopy::getSize()
return tempInfo.st_size;
}

void MtpLocalFileCopy::seek(long offset)
void MtpLocalFileCopy::seek(off_t offset)
{
if (fseek(m_localFile, offset, SEEK_SET))
if (fseeko(m_localFile, offset, SEEK_SET))
throw MtpFilesystemErrorWithErrorCode(errno, "seek failed");
}

Expand Down
2 changes: 1 addition & 1 deletion src/MtpLocalFileCopy.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MtpLocalFileCopy

off_t getSize();

void seek(long offset);
void seek(off_t offset);
size_t write(const void* ptr, size_t size);
void truncate(off_t length);
size_t read(void* ptr, size_t size);
Expand Down