Copy if !g_mem_is_system_malloc, not the other way around. (Found by James
authorOwen Taylor <otaylor@redhat.com>
Wed, 26 Sep 2001 16:42:10 +0000 (16:42 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Wed, 26 Sep 2001 16:42:10 +0000 (16:42 +0000)
Wed Sep 26 12:41:05 2001  Owen Taylor  <otaylor@redhat.com>

* glib/gstrfuncs.c (g_strdup_vprintf): Copy if
!g_mem_is_system_malloc, not the other way around.
(Found by James Antill.)

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

index bf060ee..09057ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Sep 26 12:41:05 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gstrfuncs.c (g_strdup_vprintf): Copy if 
+       !g_mem_is_system_malloc, not the other way around.
+       (Found by James Antill.)
+
 Wed Sep 26 11:00:31 2001  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gstrfuncs.c (g_strnfill): Use memset; might be 
index bf060ee..09057ef 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 26 12:41:05 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gstrfuncs.c (g_strdup_vprintf): Copy if 
+       !g_mem_is_system_malloc, not the other way around.
+       (Found by James Antill.)
+
 Wed Sep 26 11:00:31 2001  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gstrfuncs.c (g_strnfill): Use memset; might be 
index bf060ee..09057ef 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 26 12:41:05 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gstrfuncs.c (g_strdup_vprintf): Copy if 
+       !g_mem_is_system_malloc, not the other way around.
+       (Found by James Antill.)
+
 Wed Sep 26 11:00:31 2001  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gstrfuncs.c (g_strnfill): Use memset; might be 
index bf060ee..09057ef 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 26 12:41:05 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gstrfuncs.c (g_strdup_vprintf): Copy if 
+       !g_mem_is_system_malloc, not the other way around.
+       (Found by James Antill.)
+
 Wed Sep 26 11:00:31 2001  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gstrfuncs.c (g_strnfill): Use memset; might be 
index bf060ee..09057ef 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 26 12:41:05 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gstrfuncs.c (g_strdup_vprintf): Copy if 
+       !g_mem_is_system_malloc, not the other way around.
+       (Found by James Antill.)
+
 Wed Sep 26 11:00:31 2001  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gstrfuncs.c (g_strnfill): Use memset; might be 
index bf060ee..09057ef 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 26 12:41:05 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gstrfuncs.c (g_strdup_vprintf): Copy if 
+       !g_mem_is_system_malloc, not the other way around.
+       (Found by James Antill.)
+
 Wed Sep 26 11:00:31 2001  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gstrfuncs.c (g_strnfill): Use memset; might be 
index bf060ee..09057ef 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 26 12:41:05 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gstrfuncs.c (g_strdup_vprintf): Copy if 
+       !g_mem_is_system_malloc, not the other way around.
+       (Found by James Antill.)
+
 Wed Sep 26 11:00:31 2001  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gstrfuncs.c (g_strnfill): Use memset; might be 
index bf060ee..09057ef 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 26 12:41:05 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gstrfuncs.c (g_strdup_vprintf): Copy if 
+       !g_mem_is_system_malloc, not the other way around.
+       (Found by James Antill.)
+
 Wed Sep 26 11:00:31 2001  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gstrfuncs.c (g_strnfill): Use memset; might be 
index 5f2b4ce..d0181d1 100644 (file)
@@ -183,7 +183,7 @@ g_strdup_vprintf (const gchar *format,
   gchar *buffer;
 #ifdef HAVE_VASPRINTF
   vasprintf (&buffer, format, args1);
-  if (g_mem_is_system_malloc ()) 
+  if (!g_mem_is_system_malloc ()) 
     {
       gchar *buffer1 = g_strdup (buffer);
       free (buffer);