projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39d782e
)
Fix comment.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 23 Jul 2006 21:56:44 +0000
(21:56 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 23 Jul 2006 21:56:44 +0000
(21:56 +0000)
src/lib/stdio.c
patch
|
blob
|
history
diff --git
a/src/lib/stdio.c
b/src/lib/stdio.c
index e09401a61028cee158e588c4b12bc3c5d3fe5aea..af80e51e527efc00897eae04ca6fe6642fd89d1b 100644
(file)
--- a/
src/lib/stdio.c
+++ b/
src/lib/stdio.c
@@
-515,7
+515,7
@@
format_integer (uintmax_t value, bool is_signed, bool negative,
/* Append enough zeros to match precision.
If requested precision is 0, then a value of zero is
rendered as a null string, otherwise as "0".
- If the # flag is used with base
0
, the result must always
+ If the # flag is used with base
8
, the result must always
begin with a zero. */
precision = c->precision < 0 ? 1 : c->precision;
while (cp - buf < precision && cp < buf + sizeof buf - 1)