diff options
Diffstat (limited to 'example/null.c')
-rw-r--r-- | example/null.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/example/null.c b/example/null.c index a98226e..0845586 100644 --- a/example/null.c +++ b/example/null.c @@ -62,6 +62,9 @@ static int null_read(const char *path, char *buf, size_t size, if(strcmp(path, "/") != 0) return -ENOENT; + if (offset >= (1ULL << 32)) + return 0; + return size; } |