commit 83586c74edd65b747a111448c93fe178151b164a
parent 1cdd99f66b77962d5f6de841e2f7839bd918cf4b
Author: Alexey Yerin <yyp@disroot.org>
Date: Wed, 20 Oct 2021 23:12:50 +0300
format::ini: correct format string in strerror()
After io::stream.name was removed, this started causing OOB access
because format string expects two arguments but is given only one.
Signed-off-by: Alexey Yerin <yyp@disroot.org>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/format/ini/types.ha b/format/ini/types.ha
@@ -17,5 +17,5 @@ case utf8::invalid =>
case s: syntaxerr =>
// XXX: tuple unpacking could improve this
static let buf: [1024]u8 = [0...];
- yield fmt::bsprintf(buf, "{}:{}: Invalid syntax", s: size);
+ yield fmt::bsprintf(buf, "{}: Invalid syntax", s: size);
};