mirror of
https://github.com/pellepl/spiffs.git
synced 2026-09-24 01:47:38 +00:00
@@ -500,7 +500,7 @@ s32_t SPIFFS_lseek(spiffs *fs, spiffs_file fh, s32_t offs, int whence) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (offs > (s32_t)fd->size) {
|
||||
if ((offs > (s32_t)fd->size) && (SPIFFS_UNDEFINED_LEN != fd->size)) {
|
||||
res = SPIFFS_ERR_END_OF_OBJECT;
|
||||
}
|
||||
SPIFFS_API_CHECK_RES_UNLOCK(fs, res);
|
||||
|
||||
Reference in New Issue
Block a user