david/ipxe
Archived
1
0

Fixed off-by-one error

This commit is contained in:
Michael Brown 2006-11-22 04:54:17 +00:00
parent fdaddd969a
commit 6a18721ce8

View File

@ -277,7 +277,7 @@ static void printf_sputc ( struct printf_context *ctx, unsigned int c ) {
struct sputc_context * sctx =
container_of ( ctx, struct sputc_context, ctx );
if ( ctx->len <= sctx->max_len )
if ( ctx->len < sctx->max_len )
sctx->buf[ctx->len] = c;
}