Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
87844526
Commit
87844526
authored
Oct 31, 2008
by
Niels Möller
Browse files
(display_hex): Use %02x, not %2x.
Rev: nettle/sha-example.c:1.2
parent
dbeec8de
Changes
1
Hide whitespace changes
Inline
Side-by-side
nettle/sha-example.c
View file @
87844526
...
@@ -11,7 +11,7 @@ display_hex(unsigned length, uint8_t *data)
...
@@ -11,7 +11,7 @@ display_hex(unsigned length, uint8_t *data)
unsigned
i
;
unsigned
i
;
for
(
i
=
0
;
i
<
length
;
i
++
)
for
(
i
=
0
;
i
<
length
;
i
++
)
printf
(
"%2x "
,
data
[
i
]);
printf
(
"%
0
2x "
,
data
[
i
]);
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment