From 59727ede70ea4f997a525d55664316e3b058e435 Mon Sep 17 00:00:00 2001 From: Frank Freihube Date: Fri, 29 Apr 2016 08:12:55 +0200 Subject: [PATCH] fixup! make changes configurable through io_semantics() --- core/cfs/cfs-coffee.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cfs/cfs-coffee.c b/core/cfs/cfs-coffee.c index d4d988ae8..79eb18d94 100644 --- a/core/cfs/cfs-coffee.c +++ b/core/cfs/cfs-coffee.c @@ -1100,7 +1100,7 @@ cfs_read(int fd, void *buf, unsigned size) file = fdp->file; #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) { ((char*)buf)[--size] = 0; }