[gdk-pixbuf] tests: Make sure to NULL terminate the arguments passed to g_test_get_filename()



commit 89a7a851042f2706e8e7e27da6e4bfb08717430f
Author: Michael Biebl <biebl debian org>
Date:   Thu Sep 8 18:52:16 2016 +0200

    tests: Make sure to NULL terminate the arguments passed to g_test_get_filename()
    
    Otherwise the /pixbuf/composite2 test will segfault
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771026

 tests/pixbuf-composite.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/pixbuf-composite.c b/tests/pixbuf-composite.c
index f6b5feb..d701f47 100644
--- a/tests/pixbuf-composite.c
+++ b/tests/pixbuf-composite.c
@@ -64,7 +64,7 @@ test_composite2 (void)
   GdkPixbuf *src, *dest;
   guchar *pixels, *p;
 
-  src = gdk_pixbuf_new_from_file (g_test_get_filename (G_TEST_DIST, "test-image.png"), NULL);
+  src = gdk_pixbuf_new_from_file (g_test_get_filename (G_TEST_DIST, "test-image.png", NULL), NULL);
 
   {
     GdkPixbuf *tmp = gdk_pixbuf_new (GDK_COLORSPACE_RGB,


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