[glib] winhttpfile: use glib format string macro



commit 305a9b12c974fa963f19fba42efeaeaabf7f5aae
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Jan 26 10:13:02 2016 +0100

    winhttpfile: use glib format string macro
    
    Like this we avoid some downstream patching for msys2

 gio/win32/gwinhttpfile.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/win32/gwinhttpfile.c b/gio/win32/gwinhttpfile.c
index 160168d..d6c1d6f 100644
--- a/gio/win32/gwinhttpfile.c
+++ b/gio/win32/gwinhttpfile.c
@@ -549,7 +549,7 @@ g_winhttp_file_query_info (GFile                *file,
       gint64 cl;
       int n;
 
-      if (swscanf (content_length, L"%I64d%n", &cl, &n) == 1 &&
+      if (swscanf (content_length, L"%"G_GINT64_FORMAT"%n", &cl, &n) == 1 &&
           n == wcslen (content_length))
         g_file_info_set_size (info, cl);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]