mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
Copy if !g_mem_is_system_malloc, not the other way around. (Found by James
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.)
This commit is contained in:
@@ -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>
|
Wed Sep 26 11:00:31 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gstrfuncs.c (g_strnfill): Use memset; might be
|
* glib/gstrfuncs.c (g_strnfill): Use memset; might be
|
||||||
|
@@ -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>
|
Wed Sep 26 11:00:31 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gstrfuncs.c (g_strnfill): Use memset; might be
|
* glib/gstrfuncs.c (g_strnfill): Use memset; might be
|
||||||
|
@@ -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>
|
Wed Sep 26 11:00:31 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gstrfuncs.c (g_strnfill): Use memset; might be
|
* glib/gstrfuncs.c (g_strnfill): Use memset; might be
|
||||||
|
@@ -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>
|
Wed Sep 26 11:00:31 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gstrfuncs.c (g_strnfill): Use memset; might be
|
* glib/gstrfuncs.c (g_strnfill): Use memset; might be
|
||||||
|
@@ -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>
|
Wed Sep 26 11:00:31 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gstrfuncs.c (g_strnfill): Use memset; might be
|
* glib/gstrfuncs.c (g_strnfill): Use memset; might be
|
||||||
|
@@ -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>
|
Wed Sep 26 11:00:31 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gstrfuncs.c (g_strnfill): Use memset; might be
|
* glib/gstrfuncs.c (g_strnfill): Use memset; might be
|
||||||
|
@@ -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>
|
Wed Sep 26 11:00:31 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gstrfuncs.c (g_strnfill): Use memset; might be
|
* glib/gstrfuncs.c (g_strnfill): Use memset; might be
|
||||||
|
@@ -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>
|
Wed Sep 26 11:00:31 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gstrfuncs.c (g_strnfill): Use memset; might be
|
* glib/gstrfuncs.c (g_strnfill): Use memset; might be
|
||||||
|
@@ -183,7 +183,7 @@ g_strdup_vprintf (const gchar *format,
|
|||||||
gchar *buffer;
|
gchar *buffer;
|
||||||
#ifdef HAVE_VASPRINTF
|
#ifdef HAVE_VASPRINTF
|
||||||
vasprintf (&buffer, format, args1);
|
vasprintf (&buffer, format, args1);
|
||||||
if (g_mem_is_system_malloc ())
|
if (!g_mem_is_system_malloc ())
|
||||||
{
|
{
|
||||||
gchar *buffer1 = g_strdup (buffer);
|
gchar *buffer1 = g_strdup (buffer);
|
||||||
free (buffer);
|
free (buffer);
|
||||||
|
Reference in New Issue
Block a user