Refactor format string checks

This commit is contained in:
Victor Zverovich
2022-12-30 16:03:41 -08:00
parent 72785a3aba
commit a73a9b6a84
5 changed files with 125 additions and 221 deletions
+1 -1
View File
@@ -502,7 +502,7 @@ void vprintf(buffer<Char>& buf, basic_string_view<Char> format,
break;
}
}
specs.type = parse_presentation_type(type);
specs.type = parse_presentation_type(type, arg.type());
if (specs.type == presentation_type::none)
throw_format_error("invalid type specifier");