aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/encrypt.c')
-rw-r--r--g10/encrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/encrypt.c b/g10/encrypt.c
index 42ee0b773..a5b020736 100644
--- a/g10/encrypt.c
+++ b/g10/encrypt.c
@@ -842,7 +842,7 @@ encrypt_crypt (ctrl_t ctrl, gnupg_fd_t filefd, const char *filename,
rc = gpg_error_from_syserror ();
if (filefd != GNUPG_INVALID_FD)
- snprintf (xname, sizeof xname, "[fd %d]", filefd);
+ snprintf (xname, sizeof xname, "[fd %d]", (int)(intptr_t)filefd);
else if (!filename)
strcpy (xname, "[stdin]");
else