Fix for mingw32 bug.

This commit is contained in:
Werner Koch 2008-10-17 11:15:48 +00:00
parent 4ae2ac9861
commit 693e515832
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-10-17 Werner Koch <wk@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@g10code.com> 2008-09-23 Marcus Brinkmann <marcus@g10code.com>
* gpgme.c (gpgme_sig_notation_clear): Clear CTX->sig_notations. * gpgme.c (gpgme_sig_notation_clear): Clear CTX->sig_notations.

View File

@ -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_BEG1 (DEBUG_SYSIO, "_gpgme_io_fd2str", fd, "fd=%d", fd);
TRACE_SUC1 ("syshd=%p", _get_osfhandle (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));
} }