]> git.pld-linux.org Git - packages/libgnomeui.git/commitdiff
- proper format string error solution for x32
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 31 Dec 2014 19:59:04 +0000 (19:59 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 31 Dec 2014 19:59:04 +0000 (19:59 +0000)
format-security.patch

index ca48d01133d150c0b6c5dedf0fc4fc48a70d94a5..2f40d2a245a0e879f845a9876025e8d8451e5f55 100644 (file)
@@ -1,20 +1,26 @@
 --- libgnomeui-2.24.5/libgnomeui/gnome-thumbnail.c~    2010-03-29 10:48:34.000000000 +0000
 +++ libgnomeui-2.24.5/libgnomeui/gnome-thumbnail.c     2014-12-31 18:36:43.725812339 +0000
-@@ -863,7 +863,7 @@
+@@ -863,7 +863,11 @@
      }
    close (tmp_fd);
    
--  g_snprintf (mtime_str, 21, "%ld",  original_mtime);
-+  g_snprintf (mtime_str, 21, "%ld",  (long)original_mtime);
++#ifdef __ILP32__
++  g_snprintf (mtime_str, 21, "%lld",  original_mtime);
++#else
+   g_snprintf (mtime_str, 21, "%ld",  original_mtime);
++#endif
    width = gdk_pixbuf_get_option (thumbnail, "tEXt::Thumb::Image::Width");
    height = gdk_pixbuf_get_option (thumbnail, "tEXt::Thumb::Image::Height");
  
-@@ -970,7 +970,7 @@
+@@ -970,7 +970,11 @@
      }
    close (tmp_fd);
    
--  g_snprintf (mtime_str, 21, "%ld",  mtime);
-+  g_snprintf (mtime_str, 21, "%ld",  (long)mtime);
++#ifdef __ILP32__
++  g_snprintf (mtime_str, 21, "%lld",  mtime);
++#else
+   g_snprintf (mtime_str, 21, "%ld",  mtime);
++#endif
    pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, 1, 1);
    saved_ok  = gdk_pixbuf_save (pixbuf,
                               tmp_path,
This page took 0.098312 seconds and 4 git commands to generate.