[mingw-glib2] another format string issue

sailer sailer at fedoraproject.org
Fri Feb 22 19:08:40 UTC 2013


commit 68af84c18dd0796c67033e98e06149b8739b20f6
Author: Thomas Sailer <t.sailer at alumni.ethz.ch>
Date:   Fri Feb 22 20:08:24 2013 +0100

    another format string issue

 glib-formatstring.patch |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/glib-formatstring.patch b/glib-formatstring.patch
index 8977fab..63c8655 100644
--- a/glib-formatstring.patch
+++ b/glib-formatstring.patch
@@ -5,7 +5,18 @@
    tt.tm_hour = 0;
    t = mktime (&tt);
 -  g_sprintf (t_str, "%ld", t);
-+  g_sprintf (t_str, "%ld", (long int)t);
++  g_sprintf (t_str, "%ld", (glong)t);
  
    TEST_PRINTF ("%a", "Sat");
    TEST_PRINTF ("%A", "Saturday");
+--- gio/gdbusmessage.c.orig	2013-02-22 20:07:15.294752111 +0100
++++ gio/gdbusmessage.c	2013-02-22 20:07:55.788028585 +0100
+@@ -1384,7 +1384,7 @@
+                                 "Wanted to read %lu byte but only got %lu",
+                                 (gulong)len),
+                                 (gulong)len,
+-                   (gulong)mbuf->valid_len - mbuf->pos);
++                   (gulong)(mbuf->valid_len - mbuf->pos));
+       mbuf->pos = mbuf->valid_len;
+       return NULL;
+     }


More information about the mingw mailing list