mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-18 21:43:14 +00:00
Fixed off-by-one error
This commit is contained in:
parent
fdaddd969a
commit
6a18721ce8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user