libc/baselibc: ignore 'z' char in printf
We can ignore size_t ('z') format specifier, because we support only
32-bit systems. It will also make it easier to port external libraries
which support 64-bit systems.
@@ -289,6 +289,10 @@ size_t tfp_format(FILE *putp, const char *fmt, va_list va)
}
}
+ if (ch == 'z') {
+ ch = *(fmt++);
+ }
+
switch (ch) {
case 0:
goto abort;
