http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
fdaddd9
)
Fixed off-by-one error
author
Michael Brown
<mcb30@etherboot.org>
Wed, 22 Nov 2006 04:54:17 +0000
(
04:54
+0000)
committer
Michael Brown
<mcb30@etherboot.org>
Wed, 22 Nov 2006 04:54:17 +0000
(
04:54
+0000)
src/core/vsprintf.c
patch
|
blob
|
history
diff --git
a/src/core/vsprintf.c
b/src/core/vsprintf.c
index
7626787
..
42bd510
100644
(file)
--- 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;
}