From fd466889b49dfe528567587183c2aedd27836f27 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 7 Jun 2024 14:50:18 -0400 Subject: split formatted I/O header, unify undefined behavior reporting with UNDEFINED_FMT() macro --- src/stdio/__scanf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/stdio/__scanf.c') diff --git a/src/stdio/__scanf.c b/src/stdio/__scanf.c index 5e43303e..f39fdfc0 100644 --- a/src/stdio/__scanf.c +++ b/src/stdio/__scanf.c @@ -5,7 +5,7 @@ #include #include #include -#include "_stdio.h" +#include "_format.h" #include "_safety.h" #pragma GCC diagnostic ignored "-Wint-conversion" @@ -129,6 +129,7 @@ int __scanf(struct io_options *opt, const char * format, va_list arg) struct io_conversion conv = { .func = opt->fnname, .dir = IO_IN, + .fmt = format, }; if (isspace(*format)) { -- cgit v1.2.1