projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a25ada1
)
Missed a malloc->g_malloc
author
Aaron Bockover
<abockover@novell.com>
Wed, 16 Aug 2006 23:11:11 +0000
(23:11 -0000)
committer
Aaron Bockover
<abockover@novell.com>
Wed, 16 Aug 2006 23:11:11 +0000
(23:11 -0000)
svn path=/trunk/mono/; revision=63859
eglib/src/gstr.c
patch
|
blob
|
history
diff --git
a/eglib/src/gstr.c
b/eglib/src/gstr.c
index 6a72c104139e3934446700ea1cc1529d00340883..9b6c112baa17e4e5f19f08ded05c07c42d5e3fc2 100644
(file)
--- 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';