1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

common:w32: Fix for 64-bit Windows.

* common/exectool.c (gnupg_exec_tool_stream): 64-bit Windows is LLP64.

--

GnuPG-bug-id: 7139
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2024-06-06 08:56:27 +09:00
parent 77afc9ee1c
commit e02880d512
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054

View File

@ -407,8 +407,13 @@ gnupg_exec_tool_stream (const char *pgmname, const char *argv[],
Yeah, that is an ugly non-thread safe hack but it safes us to Yeah, that is an ugly non-thread safe hack but it safes us to
create a copy of the array. */ create a copy of the array. */
#ifdef HAVE_W32_SYSTEM #ifdef HAVE_W32_SYSTEM
# ifdef _WIN64
snprintf (extrafdbuf, sizeof extrafdbuf, "-&%llu",
(unsigned long long)exceptclose[i]);
# else
snprintf (extrafdbuf, sizeof extrafdbuf, "-&%lu", snprintf (extrafdbuf, sizeof extrafdbuf, "-&%lu",
(unsigned long)exceptclose[i]); (unsigned long)exceptclose[i]);
# endif
#else #else
snprintf (extrafdbuf, sizeof extrafdbuf, "-&%d", exceptclose[i]); snprintf (extrafdbuf, sizeof extrafdbuf, "-&%d", exceptclose[i]);
#endif #endif