From 5831f51a18e2405a95bb906cfc7414681fa59113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Fri, 31 Oct 2008 20:54:26 +0100 Subject: [PATCH] (display_hex): Use %02x, not %2x. Rev: nettle/sha-example.c:1.2 --- sha-example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sha-example.c b/sha-example.c index 8f434968..8b3d5059 100644 --- a/sha-example.c +++ b/sha-example.c @@ -11,7 +11,7 @@ display_hex(unsigned length, uint8_t *data) unsigned i; for (i = 0; i<length; i++) - printf("%2x ", data[i]); + printf("%02x ", data[i]); printf("\n"); } -- GitLab