diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-24 07:46:19 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-24 07:46:19 +0000 |
commit | 79e72318c2ef4b2973d6c3af023800768917650f (patch) | |
tree | 853bb1ddef138c6191a0a21cadaf99fea5256a38 /firmware/common/file.c | |
parent | c66efb702eefd0610ffd08fbc09ab4e542407de1 (diff) |
1 byte reads past a sector boundary failed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1138 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/file.c')
-rw-r--r-- | firmware/common/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c index 98bfdce42e..1005780cff 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c @@ -150,7 +150,7 @@ int read(int fd, void* buf, int count) headbytes = count; openfiles[fd].cacheoffset += count; if ( openfiles[fd].cacheoffset >= SECTOR_SIZE ) - openfiles[fd].cacheoffset = 0; + openfiles[fd].cacheoffset = -1; } else { headbytes = SECTOR_SIZE - openfiles[fd].cacheoffset; |