mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
fixup! make changes configurable through io_semantics()
This commit is contained in:
parent
5bd7fc86c3
commit
59727ede70
@ -1100,7 +1100,7 @@ cfs_read(int fd, void *buf, unsigned size)
|
|||||||
file = fdp->file;
|
file = fdp->file;
|
||||||
|
|
||||||
#if COFFEE_IO_SEMANTICS
|
#if COFFEE_IO_SEMANTICS
|
||||||
if(fdp->io_flags & CFS_COFFEE_IO_FIRM_SIZE) {
|
if(fdp->io_flags & CFS_COFFEE_IO_ENSURE_READ_LENGTH) {
|
||||||
while(fdp->offset + size > file->end) {
|
while(fdp->offset + size > file->end) {
|
||||||
((char*)buf)[--size] = 0;
|
((char*)buf)[--size] = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user