From 906fd91f4b97fe84d66ce8c05b77dfd543720c96 Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Wed, 1 Jun 2016 20:41:03 +0000 Subject: [PATCH] tools/mkfingerprint: strlen(3) on a raw byte array is wrong -- use its length as indicated by the function that filled it --- tools/mkfingerprint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mkfingerprint.c b/tools/mkfingerprint.c index 89c20a650..8f47c70f3 100644 --- a/tools/mkfingerprint.c +++ b/tools/mkfingerprint.c @@ -78,7 +78,7 @@ int main(int argc, char *argv[]) } printf("%s", prefix); - for (i = 0; i < strlen(certfp); i++) { + for (i = 0; i < ret; i++) { printf("%02x", certfp[i]); } printf("\n");