diff options
author | Thomas Huth <thuth@redhat.com> | 2023-02-22 16:40:56 +0100 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2023-02-28 16:12:57 +1100 |
commit | 9604efb1832de13b51f93ad0a3581f9ed6dc04b5 (patch) | |
tree | 67b01f8c25785243baedd3863df657baa3d086a2 /lib/libc/stdio/vsnprintf.c | |
parent | ac9eac38755af41c114bef5515aa6863ad648d86 (diff) | |
download | qemu-SLOF-9604efb1832de13b51f93ad0a3581f9ed6dc04b5.tar.gz |
Fix typos in the remaining lib folders
Found with the "codespell" utility.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib/libc/stdio/vsnprintf.c')
-rw-r--r-- | lib/libc/stdio/vsnprintf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/stdio/vsnprintf.c b/lib/libc/stdio/vsnprintf.c index 12f3043..ad91132 100644 --- a/lib/libc/stdio/vsnprintf.c +++ b/lib/libc/stdio/vsnprintf.c @@ -234,13 +234,12 @@ print_format(char **buffer, size_t bufsize, const char *format, void *var) form++; } - return (long int) (*buffer - start); } /* - * The vsnprintf function prints a formated strings into a buffer. + * The vsnprintf function prints a formatted string into a buffer. * BUG: buffer size checking does not fully work yet */ int @@ -266,7 +265,7 @@ vsnprintf(char *buffer, size_t bufsize, const char *format, va_list arg) if(*ptr == '%') { char formstr[20]; int i=0; - + do { formstr[i] = *ptr; ptr++; @@ -292,7 +291,7 @@ vsnprintf(char *buffer, size_t bufsize, const char *format, va_list arg) ptr++; } } - + *buffer = '\0'; return (buffer - bstart); |