summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}