Mercurial > audlegacy
changeset 2609:fe33bdd3d5ad trunk
[svn] Prevent double free() by strdup'ing value.
author | hansmi |
---|---|
date | Mon, 05 Mar 2007 16:28:45 -0800 |
parents | f4fa6b295b43 |
children | 2c41c0ef0c36 |
files | ChangeLog src/audacious/build_stamp.c src/audacious/util.c |
diffstat | 3 files changed, 12 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Mar 05 13:50:32 2007 -0800 +++ b/ChangeLog Mon Mar 05 16:28:45 2007 -0800 @@ -1,3 +1,12 @@ +2007-03-05 21:50:32 +0000 Michael Farber <01mf02@gmail.com> + revision [4226] + - Remove even more duplicate code + + + trunk/src/audacious/ui_fileinfopopup.c | 162 +++++++++++---------------------- + 1 file changed, 58 insertions(+), 104 deletions(-) + + 2007-03-05 21:43:09 +0000 Michael Hanselmann <hansmi@forkbomb.ch> revision [4224] Check filesize before doing memcmp (potential sigsegv).
--- a/src/audacious/build_stamp.c Mon Mar 05 13:50:32 2007 -0800 +++ b/src/audacious/build_stamp.c Mon Mar 05 16:28:45 2007 -0800 @@ -1,2 +1,2 @@ #include <glib.h> -const gchar *svn_stamp = "20070305-4224"; +const gchar *svn_stamp = "20070305-4226";
--- a/src/audacious/util.c Mon Mar 05 13:50:32 2007 -0800 +++ b/src/audacious/util.c Mon Mar 05 16:28:45 2007 -0800 @@ -379,7 +379,7 @@ strip_lower_string(GString *string) { strip_string(string); - + gchar *lower = g_ascii_strdown(string->str, -1); g_free(string->str); string->str = lower; @@ -531,7 +531,7 @@ strip_string(value); if (key_name->len > 0 && value->len > 0) - g_hash_table_insert(section, key_hash, value->str); + g_hash_table_insert(section, key_hash, g_strdup(value->str)); } else {