[gdk-pixbuf] queryloaders: use g_build_filename instead of concat



commit 0e528ea0b52f0489ed62ce67af8cab021138fd39
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Fri Jan 5 16:37:34 2018 +0100

    queryloaders: use g_build_filename instead of concat

 gdk-pixbuf/queryloaders.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gdk-pixbuf/queryloaders.c b/gdk-pixbuf/queryloaders.c
index a81c804..fe2f230 100644
--- a/gdk-pixbuf/queryloaders.c
+++ b/gdk-pixbuf/queryloaders.c
@@ -295,10 +295,9 @@ int main (int argc, char **argv)
                                 *slash = '\0';
                         }
 
-                        libdir = g_strconcat (runtime_prefix,
-                                              "/",
-                                              PIXBUF_LIBDIR + strlen (GDK_PIXBUF_PREFIX) + 1,
-                                              NULL);
+                        libdir = g_build_filename (runtime_prefix,
+                                                   PIXBUF_LIBDIR + strlen (GDK_PIXBUF_PREFIX) + 1,
+                                                   NULL);
                 }
         }
         else {


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