From d07f85e11ec1006927f06dc62a6f9c7101d1c45b Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Tue, 20 Nov 2007 10:46:15 +0000 Subject: [PATCH] use g_strconcat() instead of g_strjoin() to concatenate two strings. 2007-11-20 Sven Neumann * glib/gerror.c (g_error_add_prefix): use g_strconcat() instead of g_strjoin() to concatenate two strings. svn path=/trunk/; revision=5873 --- ChangeLog | 5 +++++ glib/gerror.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6db5ccf..6dfd772 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-20 Sven Neumann + + * glib/gerror.c (g_error_add_prefix): use g_strconcat() instead of + g_strjoin() to concatenate two strings. + 2007-11-19 Marco Barisione * glib/gregex.c: When the compilation of a pattern fails in the error diff --git a/glib/gerror.c b/glib/gerror.c index 6d47949..b35c735 100644 --- a/glib/gerror.c +++ b/glib/gerror.c @@ -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); } -- 2.7.4