From 305a9b12c974fa963f19fba42efeaeaabf7f5aae Mon Sep 17 00:00:00 2001 From: Ignacio Casal Quinteiro Date: Tue, 26 Jan 2016 10:13:02 +0100 Subject: [PATCH] winhttpfile: use glib format string macro Like this we avoid some downstream patching for msys2 --- gio/win32/gwinhttpfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/win32/gwinhttpfile.c b/gio/win32/gwinhttpfile.c index 160168d2f..d6c1d6f9b 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);