diff options
Diffstat (limited to 'libc/src/stdio/fopencookie.cpp')
| -rw-r--r-- | libc/src/stdio/fopencookie.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/src/stdio/fopencookie.cpp b/libc/src/stdio/fopencookie.cpp index a48e28f1324e..2e3cce7e6672 100644 --- a/libc/src/stdio/fopencookie.cpp +++ b/libc/src/stdio/fopencookie.cpp @@ -32,8 +32,9 @@ public: CookieFile(void *c, cookie_io_functions_t cops, uint8_t *buffer, size_t bufsize, File::ModeFlags mode) : File(&cookie_write, &cookie_read, &CookieFile::cookie_seek, - &cookie_close, &cookie_flush, buffer, bufsize, - 0 /* default buffering mode */, true /* File owns buffer */, mode), + &cookie_close, &cookie_flush, &cleanup_file<CookieFile>, buffer, + bufsize, 0 /* default buffering mode */, + true /* File owns buffer */, mode), cookie(c), ops(cops) {} }; |
