anjuta r4018 - in trunk: . plugins/file-manager
- From: naba svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4018 - in trunk: . plugins/file-manager
- Date: Sun, 15 Jun 2008 09:12:27 +0000 (UTC)
Author: naba
Date: Sun Jun 15 09:12:26 2008
New Revision: 4018
URL: http://svn.gnome.org/viewvc/anjuta?rev=4018&view=rev
Log:
* plugins/file-manager/file-view.c (file_view_show_extended_data):
Fixed a crash on file selection. Gave enough buffer for the formated
time print.
Modified:
trunk/ChangeLog
trunk/plugins/file-manager/file-view.c
Modified: trunk/plugins/file-manager/file-view.c
==============================================================================
--- trunk/plugins/file-manager/file-view.c (original)
+++ trunk/plugins/file-manager/file-view.c Sun Jun 15 09:12:26 2008
@@ -199,7 +199,7 @@
if (!is_dir)
{
gchar* display;
- gchar time_str[21];
+ gchar time_str[128];
gtk_tree_model_get (file_model, iter, COLUMN_FILE, &file, -1);
time_t time;
@@ -208,8 +208,7 @@
G_FILE_QUERY_INFO_NONE,
NULL, NULL);
time = g_file_info_get_attribute_uint64(file_info, "time::changed");
- strftime(time_str, 20, "%x %X", localtime(&time));
-
+ strftime(time_str, 127, "%x %X", localtime(&time));
display = g_markup_printf_escaped("%s\n"
"<small><tt>%s</tt></small>",
g_file_info_get_display_name(file_info),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]