mirror of https://github.com/ipxe/ipxe.git
Handle the '"%c", 0' case correctly.
parent
efd6281a35
commit
eb6b8e8d70
|
@ -228,7 +228,7 @@ size_t vcprintf ( struct printf_context *ctx, const char *fmt, va_list args ) {
|
||||||
ptr = tmp_buf + sizeof ( tmp_buf ) - 1;
|
ptr = tmp_buf + sizeof ( tmp_buf ) - 1;
|
||||||
*ptr = '\0';
|
*ptr = '\0';
|
||||||
if ( *fmt == 'c' ) {
|
if ( *fmt == 'c' ) {
|
||||||
*(--ptr) = va_arg ( args, unsigned int );
|
ctx->handler ( ctx, va_arg ( args, unsigned int ) );
|
||||||
} else if ( *fmt == 's' ) {
|
} else if ( *fmt == 's' ) {
|
||||||
ptr = va_arg ( args, char * );
|
ptr = va_arg ( args, char * );
|
||||||
} else if ( *fmt == 'p' ) {
|
} else if ( *fmt == 'p' ) {
|
||||||
|
|
Loading…
Reference in New Issue