From 22796663dcad81684ab24308d9db570f6781ba2c Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sat, 5 Jan 2019 13:54:27 -0500 Subject: [PATCH] Fix missing arguments. --- platform-independent/c/cli/src/bcrypt.c | 2 +- platform-independent/c/cli/src/mpw-cli-util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform-independent/c/cli/src/bcrypt.c b/platform-independent/c/cli/src/bcrypt.c index f0baf238..576bd510 100644 --- a/platform-independent/c/cli/src/bcrypt.c +++ b/platform-independent/c/cli/src/bcrypt.c @@ -74,7 +74,7 @@ bcrypt_initsalt(int log_rounds, uint8_t *salt, size_t saltbuflen) { // Switching to PRNG rand() for portability. Do not use in production code. //arc4random_buf( csalt, sizeof( csalt ) ); - srand( time() ); + srand( time( NULL ) ); for (int s = 0; s < sizeof( csalt ); ++s) csalt[s] = (uint8_t)rand(); diff --git a/platform-independent/c/cli/src/mpw-cli-util.c b/platform-independent/c/cli/src/mpw-cli-util.c index 13308533..92b726b2 100644 --- a/platform-independent/c/cli/src/mpw-cli-util.c +++ b/platform-independent/c/cli/src/mpw-cli-util.c @@ -57,7 +57,7 @@ const char *mpw_askpass(const char *prompt) { pid_t pid = fork(); if (pid == ERR) { - wrn( "Couldn't fork for askpass: %s", askpass, strerror( errno ) ); + wrn( "Couldn't fork for askpass:\n %s: %s", askpass, strerror( errno ) ); return NULL; }