From: Werner Koch Date: Fri, 17 Oct 2008 11:15:48 +0000 (+0000) Subject: Fix for mingw32 bug. X-Git-Tag: gpgme-1.2.0@1385~49 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c9a718ac926be4c225e2615666bd0026ff091db4;p=gpgme.git Fix for mingw32 bug. --- diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 7448483..c68b6ca 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2008-10-17 Werner Koch + + * w32-glib-io.c (_gpgme_io_fd2str): Use "%d" and not "%ld" to work + around a bug in mingw32. + 2008-09-23 Marcus Brinkmann * gpgme.c (gpgme_sig_notation_clear): Clear CTX->sig_notations. diff --git a/trunk/gpgme/w32-glib-io.c b/trunk/gpgme/w32-glib-io.c index 9381b2e..f4afc7e 100644 --- a/trunk/gpgme/w32-glib-io.c +++ b/trunk/gpgme/w32-glib-io.c @@ -143,7 +143,7 @@ _gpgme_io_fd2str (char *buf, int buflen, int fd) { 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)); }