summaryrefslogtreecommitdiff
path: root/crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto.c')
-rw-r--r--crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto.c b/crypto.c
index c692c59a..f9ac57f7 100644
--- a/crypto.c
+++ b/crypto.c
@@ -109,7 +109,7 @@ void bch2_add_key(struct bch_sb *sb, const char *passphrase)
add_key("user", description,
&passphrase_key, sizeof(passphrase_key),
KEY_SPEC_USER_KEYRING) < 0)
- die("add_key error: %s", strerror(errno));
+ die("add_key error: %m");
memzero_explicit(description, strlen(description));
free(description);