aboutsummaryrefslogtreecommitdiffstats
path: root/sm/misc.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sm/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/misc.c b/sm/misc.c
index 4c6293fc2..ec9f97e02 100644
--- a/sm/misc.c
+++ b/sm/misc.c
@@ -57,7 +57,7 @@ setup_pinentry_env (void)
{
log_error (_("GPG_TTY has not been set - "
"using maybe bogus default\n"));
- lc = ttyname (0);
+ lc = gnupg_ttyname (0);
if (!lc)
lc = "/dev/tty";
gnupg_setenv ("GPG_TTY", lc, 1);