diff options
author | Philip Van Hoof <pvanhoof@gnome.org> | 2005-03-02 23:56:23 +0800 |
---|---|---|
committer | Philip Van Hoof <pvanhoof@src.gnome.org> | 2005-03-02 23:56:23 +0800 |
commit | 43f8824655767ffa75a94114be9e893353464cf3 (patch) | |
tree | 94f7cbc52a4e5270e408b6ac235e8133e69460ea /plugins/save-calendar/csv-format.c | |
parent | b72fc2eca390d5c032d5932e964ed519504b3b65 (diff) | |
download | gsoc2013-evolution-43f8824655767ffa75a94114be9e893353464cf3.tar.gz gsoc2013-evolution-43f8824655767ffa75a94114be9e893353464cf3.tar.zst gsoc2013-evolution-43f8824655767ffa75a94114be9e893353464cf3.zip |
Fixes for Bug #73099 and Bug #73098 Changed malloc to g_malloc and char to
2005-03-02 Philip Van Hoof <pvanhoof@gnome.org>
* rdf-format.c: Fixes for Bug #73099 and Bug #73098
* csv-format.c: Changed malloc to g_malloc and char to gchar
svn path=/trunk/; revision=28937
Diffstat (limited to 'plugins/save-calendar/csv-format.c')
-rw-r--r-- | plugins/save-calendar/csv-format.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/save-calendar/csv-format.c b/plugins/save-calendar/csv-format.c index 4f10d14a2a..e414571af8 100644 --- a/plugins/save-calendar/csv-format.c +++ b/plugins/save-calendar/csv-format.c @@ -161,7 +161,7 @@ add_time_to_csv (GString *line, icaltimetype *time, CsvConfig *config) if (time) { gboolean needquotes = FALSE; struct tm mytm = icaltimetype_to_tm (time); - char *str = (char*) malloc (sizeof (char) * 200); + gchar *str = (char*) g_malloc (sizeof (char) * 200); /* * Translator: the %F %T is the thirth argument for a strftime function. @@ -179,7 +179,7 @@ add_time_to_csv (GString *line, icaltimetype *time, CsvConfig *config) if (needquotes) line = g_string_append (line, config->quote); - free (str); + g_free (str); } |