musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/vswscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/vswscanf.c')
-rw-r--r--src/stdio/vswscanf.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/vswscanf.c b/src/stdio/vswscanf.c
index 4396d7df..4c39f806 100644
--- a/src/stdio/vswscanf.c
+++ b/src/stdio/vswscanf.c
@@ -17,7 +17,7 @@ static size_t wstring_read(FILE *f, unsigned char *buf, size_t len)
f->rend = f->buf + k;
f->cookie = (void *)src;
- if (!len) return 0;
+ if (!len || !k) return 0;
*buf = *f->rpos++;
return 1;
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月06日 03:14:20 +0000

AltStyle によって変換されたページ (->オリジナル) /