use g_strconcat() instead of g_strjoin() to concatenate two strings.
authorSven Neumann <sven@gimp.org>
Tue, 20 Nov 2007 10:46:15 +0000 (10:46 +0000)
committerSven Neumann <neo@src.gnome.org>
Tue, 20 Nov 2007 10:46:15 +0000 (10:46 +0000)
2007-11-20  Sven Neumann  <sven@gimp.org>

* glib/gerror.c (g_error_add_prefix): use g_strconcat() instead of
g_strjoin() to concatenate two strings.

svn path=/trunk/; revision=5873

ChangeLog
glib/gerror.c

index 6db5ccf..6dfd772 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-20  Sven Neumann  <sven@gimp.org>
+
+       * glib/gerror.c (g_error_add_prefix): use g_strconcat() instead of
+       g_strjoin() to concatenate two strings.
+
 2007-11-19  Marco Barisione  <marco@barisione.org>
 
        * glib/gregex.c: When the compilation of a pattern fails in the error
index 6d47949..b35c735 100644 (file)
@@ -267,7 +267,7 @@ g_error_add_prefix (gchar       **string,
 
   prefix = g_strdup_vprintf (format, ap);
   oldstring = *string;
-  *string = g_strjoin ("", prefix, oldstring, NULL);
+  *string = g_strconcat (prefix, oldstring, NULL);
   g_free (oldstring);
   g_free (prefix);
 }