summaryrefslogtreecommitdiffstats
path: root/src/core/vsprintf.c
diff options
context:
space:
mode:
authorMichael Brown2006-11-22 05:54:17 +0100
committerMichael Brown2006-11-22 05:54:17 +0100
commit6a18721ce869b6cd09454331d7bd4413fe2faf46 (patch)
treeda7998a56e79440d3ca16dbd08bcc0bd03c7116c /src/core/vsprintf.c
parentAdded "name" field to digest algorithms (diff)
downloadipxe-6a18721ce869b6cd09454331d7bd4413fe2faf46.tar.gz
ipxe-6a18721ce869b6cd09454331d7bd4413fe2faf46.tar.xz
ipxe-6a18721ce869b6cd09454331d7bd4413fe2faf46.zip
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 7626787d..42bd510b 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;
}