use g_strconcat() instead of g_strjoin() to concatenate two strings.

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
This commit is contained in:
Sven Neumann 2007-11-20 10:46:15 +00:00 committed by Sven Neumann
parent 3bbc6f8fe3
commit d07f85e11e
2 changed files with 6 additions and 1 deletions

View File

@ -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

View 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);
}