From 4f9147fefb813a79a8b2505088f83df74a6170e4 Mon Sep 17 00:00:00 2001 From: Aaron Bockover Date: Wed, 16 Aug 2006 23:11:11 +0000 Subject: [PATCH] Missed a malloc->g_malloc svn path=/trunk/mono/; revision=63859 --- eglib/src/gstr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eglib/src/gstr.c b/eglib/src/gstr.c index 6a72c104139..9b6c112baa1 100644 --- a/eglib/src/gstr.c +++ b/eglib/src/gstr.c @@ -104,7 +104,7 @@ g_strconcat (const gchar *first, ...) } gchar ** -g_strsplit(const gchar *string, const gchar *delimiter, gint max_tokens) +g_strsplit (const gchar *string, const gchar *delimiter, gint max_tokens) { gchar *string_c; gchar *strtok_save, **vector; @@ -126,7 +126,7 @@ g_strsplit(const gchar *string, const gchar *delimiter, gint max_tokens) while(token != NULL) { token_length = strlen(token); - token_c = (gchar *)malloc(token_length + 1); + token_c = (gchar *)g_malloc(token_length + 1); strncpy(token_c, token, token_length); token_c[token_length] = '\0'; -- 2.25.1