diff options
author | Michael Brown <mcb30@etherboot.org> | 2006-11-22 04:54:17 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2006-11-22 04:54:17 +0000 |
commit | 6a18721ce869b6cd09454331d7bd4413fe2faf46 (patch) | |
tree | da7998a56e79440d3ca16dbd08bcc0bd03c7116c /src/core/vsprintf.c | |
parent | fdaddd969a5f5ae798baa0b68f4fff6b28f91665 (diff) | |
download | ipxe-6a18721ce869b6cd09454331d7bd4413fe2faf46.tar.gz |
Fixed off-by-one error
Diffstat (limited to 'src/core/vsprintf.c')
-rw-r--r-- | src/core/vsprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/vsprintf.c b/src/core/vsprintf.c index 7626787d0..42bd510b2 100644 --- a/src/core/vsprintf.c +++ b/src/core/vsprintf.c @@ -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; } |