mirror of https://github.com/ipxe/ipxe.git
Fixed off-by-one error
parent
fdaddd969a
commit
6a18721ce8
|
@ -277,7 +277,7 @@ static void printf_sputc ( struct printf_context *ctx, unsigned int c ) {
|
||||||
struct sputc_context * sctx =
|
struct sputc_context * sctx =
|
||||||
container_of ( ctx, struct sputc_context, ctx );
|
container_of ( ctx, struct sputc_context, ctx );
|
||||||
|
|
||||||
if ( ctx->len <= sctx->max_len )
|
if ( ctx->len < sctx->max_len )
|
||||||
sctx->buf[ctx->len] = c;
|
sctx->buf[ctx->len] = c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue