aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/vsprintf.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2006-11-22 04:54:17 +0000
committerMichael Brown <mcb30@etherboot.org>2006-11-22 04:54:17 +0000
commit6a18721ce869b6cd09454331d7bd4413fe2faf46 (patch)
treeda7998a56e79440d3ca16dbd08bcc0bd03c7116c /src/core/vsprintf.c
parentfdaddd969a5f5ae798baa0b68f4fff6b28f91665 (diff)
downloadipxe-6a18721ce869b6cd09454331d7bd4413fe2faf46.tar.gz
Fixed off-by-one error
Diffstat (limited to 'src/core/vsprintf.c')
-rw-r--r--src/core/vsprintf.c2
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;
}