summaryrefslogtreecommitdiff
path: root/lib/fmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fmt.c')
-rw-r--r--lib/fmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fmt.c b/lib/fmt.c
index f180606..58186f8 100644
--- a/lib/fmt.c
+++ b/lib/fmt.c
@@ -409,7 +409,7 @@ fmt_sprintf_state_consume(struct fmt_sprintf_state *state)
c = fmt_consume(&state->format);
if (c == '\0') {
- return EIO;
+ return ENOENT;
}
if (c != '%') {
@@ -1091,7 +1091,7 @@ fmt_sscanf_state_consume(struct fmt_sscanf_state *state)
c = fmt_consume(&state->format);
if (c == '\0') {
- return EIO;
+ return ENOENT;
}
if (c != '%') {