From efc2ec72b5061346ed325f5fa008f4e92759c750 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Fri, 15 Jun 2001 18:28:06 +0000 Subject: [PATCH] Fix a use of strcat that wasn't replaced with g_stpcpy in the original Thu Jun 14 14:09:46 2001 Owen Taylor * gstrfuncs.c (g_strconcat): Fix a use of strcat that wasn't replaced with g_stpcpy in the original stpcpy-for-efficiency patch. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-12 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ glib/gstrfuncs.c | 2 +- gstrfuncs.c | 2 +- 10 files changed, 50 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3444e61..ed2ae30 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Jun 14 14:09:46 2001 Owen Taylor + + * gstrfuncs.c (g_strconcat): Fix a use of strcat that + wasn't replaced with g_stpcpy in the original + stpcpy-for-efficiency patch. + 2001-06-11 Havoc Pennington * NEWS: updated diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 3444e61..ed2ae30 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +Thu Jun 14 14:09:46 2001 Owen Taylor + + * gstrfuncs.c (g_strconcat): Fix a use of strcat that + wasn't replaced with g_stpcpy in the original + stpcpy-for-efficiency patch. + 2001-06-11 Havoc Pennington * NEWS: updated diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 3444e61..ed2ae30 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Thu Jun 14 14:09:46 2001 Owen Taylor + + * gstrfuncs.c (g_strconcat): Fix a use of strcat that + wasn't replaced with g_stpcpy in the original + stpcpy-for-efficiency patch. + 2001-06-11 Havoc Pennington * NEWS: updated diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 3444e61..ed2ae30 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +Thu Jun 14 14:09:46 2001 Owen Taylor + + * gstrfuncs.c (g_strconcat): Fix a use of strcat that + wasn't replaced with g_stpcpy in the original + stpcpy-for-efficiency patch. + 2001-06-11 Havoc Pennington * NEWS: updated diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 3444e61..ed2ae30 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +Thu Jun 14 14:09:46 2001 Owen Taylor + + * gstrfuncs.c (g_strconcat): Fix a use of strcat that + wasn't replaced with g_stpcpy in the original + stpcpy-for-efficiency patch. + 2001-06-11 Havoc Pennington * NEWS: updated diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 3444e61..ed2ae30 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Thu Jun 14 14:09:46 2001 Owen Taylor + + * gstrfuncs.c (g_strconcat): Fix a use of strcat that + wasn't replaced with g_stpcpy in the original + stpcpy-for-efficiency patch. + 2001-06-11 Havoc Pennington * NEWS: updated diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 3444e61..ed2ae30 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Thu Jun 14 14:09:46 2001 Owen Taylor + + * gstrfuncs.c (g_strconcat): Fix a use of strcat that + wasn't replaced with g_stpcpy in the original + stpcpy-for-efficiency patch. + 2001-06-11 Havoc Pennington * NEWS: updated diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 3444e61..ed2ae30 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Thu Jun 14 14:09:46 2001 Owen Taylor + + * gstrfuncs.c (g_strconcat): Fix a use of strcat that + wasn't replaced with g_stpcpy in the original + stpcpy-for-efficiency patch. + 2001-06-11 Havoc Pennington * NEWS: updated diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index dd7dc45..066cdb3 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -214,7 +214,7 @@ g_strconcat (const gchar *string1, ...) s = va_arg (args, gchar*); while (s) { - strcat (concat, s); + ptr = g_stpcpy (ptr, s); s = va_arg (args, gchar*); } va_end (args); diff --git a/gstrfuncs.c b/gstrfuncs.c index dd7dc45..066cdb3 100644 --- a/gstrfuncs.c +++ b/gstrfuncs.c @@ -214,7 +214,7 @@ g_strconcat (const gchar *string1, ...) s = va_arg (args, gchar*); while (s) { - strcat (concat, s); + ptr = g_stpcpy (ptr, s); s = va_arg (args, gchar*); } va_end (args); -- 2.7.4