From: Michael Brown Date: Wed, 22 Nov 2006 04:54:17 +0000 (+0000) Subject: Fixed off-by-one error X-Git-Tag: v0.9.3~991 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a18721ce869b6cd09454331d7bd4413fe2faf46;p=thirdparty%2Fipxe.git Fixed off-by-one error --- 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; }