From 44cb3056bc7aa897b1a3dfeac9d0ff097cf310de Mon Sep 17 00:00:00 2001 From: Matheus Afonso Martins Moreira Date: Thu, 2 Nov 2023 06:07:13 -0300 Subject: [PATCH] vcscanf: add buffer cursor variable Keeps track of current buffer position. --- libc/stdio/vcscanf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libc/stdio/vcscanf.c b/libc/stdio/vcscanf.c index 1fc4f44df..e0b24bfd1 100644 --- a/libc/stdio/vcscanf.c +++ b/libc/stdio/vcscanf.c @@ -62,6 +62,7 @@ int __vcscanf(int callback(void *), // } *freeme = NULL; unsigned char *buf = NULL; size_t bufsize; + size_t bufcur; const unsigned char *p = (const unsigned char *)fmt; int *n_ptr; int items = 0;