From a261538602cad008cc4d9354e92a3ce6babf8cc4 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sun, 6 Aug 2017 19:09:13 -0400 Subject: [PATCH] Slight adjustment in printf declarations. --- core/c/mpw-algorithm_v0.c | 4 ++-- core/c/mpw-algorithm_v1.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/c/mpw-algorithm_v0.c b/core/c/mpw-algorithm_v0.c index 5fe465e6..16f2db74 100644 --- a/core/c/mpw-algorithm_v0.c +++ b/core/c/mpw-algorithm_v0.c @@ -132,7 +132,7 @@ static const char *mpw_sitePassword_v0( if (!template) return NULL; if (strlen( template ) > MPSiteKeySize) { - err( "Template too long for password seed: %lu\n", strlen( template ) ); + err( "Template too long for password seed: %zu\n", strlen( template ) ); return NULL; } @@ -158,7 +158,7 @@ const char *mpw_encrypt_v0( err( "AES encryption error: %s\n", strerror( errno ) ); return NULL; } - trc( "cipherBuf: %lu bytes = %s\n", bufSize, mpw_hex( cipherBuf, bufSize ) ); + trc( "cipherBuf: %zu bytes = %s\n", bufSize, mpw_hex( cipherBuf, bufSize ) ); // Base64-encode size_t b64Max = mpw_base64_encode_max( bufSize ); diff --git a/core/c/mpw-algorithm_v1.c b/core/c/mpw-algorithm_v1.c index 790d462c..384b2108 100644 --- a/core/c/mpw-algorithm_v1.c +++ b/core/c/mpw-algorithm_v1.c @@ -61,7 +61,7 @@ static const char *mpw_sitePassword_v1( if (!template) return NULL; if (strlen( template ) > MPSiteKeySize) { - err( "Template too long for password seed: %lu\n", strlen( template ) ); + err( "Template too long for password seed: %zu\n", strlen( template ) ); return NULL; }