[svn] gpgme - r1335 - trunk/gpgme
svn author wk
cvs at cvs.gnupg.org
Fri Oct 17 13:15:48 CEST 2008
Author: wk
Date: 2008-10-17 13:15:48 +0200 (Fri, 17 Oct 2008)
New Revision: 1335
Modified:
trunk/gpgme/ChangeLog
trunk/gpgme/w32-glib-io.c
Log:
Fix for mingw32 bug.
Modified: trunk/gpgme/ChangeLog
===================================================================
--- trunk/gpgme/ChangeLog 2008-09-23 10:52:09 UTC (rev 1334)
+++ trunk/gpgme/ChangeLog 2008-10-17 11:15:48 UTC (rev 1335)
@@ -1,3 +1,8 @@
+2008-10-17 Werner Koch <wk at g10code.com>
+
+ * w32-glib-io.c (_gpgme_io_fd2str): Use "%d" and not "%ld" to work
+ around a bug in mingw32.
+
2008-09-23 Marcus Brinkmann <marcus at g10code.com>
* gpgme.c (gpgme_sig_notation_clear): Clear CTX->sig_notations.
Modified: trunk/gpgme/w32-glib-io.c
===================================================================
--- trunk/gpgme/w32-glib-io.c 2008-09-23 10:52:09 UTC (rev 1334)
+++ trunk/gpgme/w32-glib-io.c 2008-10-17 11:15:48 UTC (rev 1335)
@@ -143,7 +143,7 @@
{
TRACE_BEG1 (DEBUG_SYSIO, "_gpgme_io_fd2str", fd, "fd=%d", fd);
TRACE_SUC1 ("syshd=%p", _get_osfhandle (fd));
- return snprintf (buf, buflen, "%ld", (long) _get_osfhandle (fd));
+ return snprintf (buf, buflen, "%d", (int) _get_osfhandle (fd));
}
More information about the Gnupg-commits
mailing list