diff options
Diffstat (limited to 'nuttx/lib/stdio/lib_libfwrite.c')
-rw-r--r-- | nuttx/lib/stdio/lib_libfwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/lib/stdio/lib_libfwrite.c b/nuttx/lib/stdio/lib_libfwrite.c index 3b7253cdd..e2c35e3e9 100644 --- a/nuttx/lib/stdio/lib_libfwrite.c +++ b/nuttx/lib/stdio/lib_libfwrite.c @@ -96,7 +96,7 @@ ssize_t lib_fwrite(FAR const void *ptr, size_t count, FAR FILE *stream) if (!stream || (stream->fs_oflags & O_WROK) == 0) { - *get_errno_ptr() = EBADF; + set_errno(EBADF); goto errout; } |