From c78ae967f8a5148b157efc67a130e8dc57c57198 Mon Sep 17 00:00:00 2001 From: Matheus Afonso Martins Moreira Date: Thu, 2 Nov 2023 20:34:04 -0300 Subject: [PATCH] vcscanf: buffer the last 'y' of "infinity" I don't know why I thought this wasn't necessary. --- libc/stdio/vcscanf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libc/stdio/vcscanf.c b/libc/stdio/vcscanf.c index d74b70067..b2bcc1b9c 100644 --- a/libc/stdio/vcscanf.c +++ b/libc/stdio/vcscanf.c @@ -391,6 +391,7 @@ int __vcscanf(int callback(void *), // if (c == 't' || c == 'T') { c = BUFFER; if (c == 'y' || c == 'Y') { + c = BUFFER; } else { goto Done; }