summaryrefslogtreecommitdiff
path: root/common/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/path.c')
-rw-r--r--common/path.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/path.c b/common/path.c
index 2f976a8..f7bd2b9 100644
--- a/common/path.c
+++ b/common/path.c
@@ -137,8 +137,7 @@ expand_homedir (const char *remainder)
pwd = getpwuid (getuid ());
if (!pwd) {
error = errno;
- p11_message ("couldn't lookup home directory for user %d: %s",
- getuid (), strerror (errno));
+ p11_message_err (errno, "couldn't lookup home directory for user %d", getuid ());
errno = error;
return NULL;
}