Fix a use of strcat that wasn't replaced with g_stpcpy in the original
authorOwen Taylor <otaylor@redhat.com>
Fri, 15 Jun 2001 18:28:06 +0000 (18:28 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Fri, 15 Jun 2001 18:28:06 +0000 (18:28 +0000)
Thu Jun 14 14:09:46 2001  Owen Taylor  <otaylor@redhat.com>

* gstrfuncs.c (g_strconcat): Fix a use of strcat that
wasn't replaced with g_stpcpy in the original
stpcpy-for-efficiency patch.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gstrfuncs.c
gstrfuncs.c

index 3444e61..ed2ae30 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Jun 14 14:09:46 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * 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  <hp@redhat.com>
 
        * NEWS: updated
index 3444e61..ed2ae30 100644 (file)
@@ -1,3 +1,9 @@
+Thu Jun 14 14:09:46 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * 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  <hp@redhat.com>
 
        * NEWS: updated
index 3444e61..ed2ae30 100644 (file)
@@ -1,3 +1,9 @@
+Thu Jun 14 14:09:46 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * 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  <hp@redhat.com>
 
        * NEWS: updated
index 3444e61..ed2ae30 100644 (file)
@@ -1,3 +1,9 @@
+Thu Jun 14 14:09:46 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * 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  <hp@redhat.com>
 
        * NEWS: updated
index 3444e61..ed2ae30 100644 (file)
@@ -1,3 +1,9 @@
+Thu Jun 14 14:09:46 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * 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  <hp@redhat.com>
 
        * NEWS: updated
index 3444e61..ed2ae30 100644 (file)
@@ -1,3 +1,9 @@
+Thu Jun 14 14:09:46 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * 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  <hp@redhat.com>
 
        * NEWS: updated
index 3444e61..ed2ae30 100644 (file)
@@ -1,3 +1,9 @@
+Thu Jun 14 14:09:46 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * 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  <hp@redhat.com>
 
        * NEWS: updated
index 3444e61..ed2ae30 100644 (file)
@@ -1,3 +1,9 @@
+Thu Jun 14 14:09:46 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * 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  <hp@redhat.com>
 
        * NEWS: updated
index dd7dc45..066cdb3 100644 (file)
@@ -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);
index dd7dc45..066cdb3 100644 (file)
@@ -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);