Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_fileman_smart.c e_int_menus.c
Log Message:
Fix snprintf to the wrong var.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_fileman_smart.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- e_fileman_smart.c 10 Oct 2005 20:36:38 -0000 1.9
+++ e_fileman_smart.c 10 Oct 2005 20:40:35 -0000 1.10
@@ -981,7 +981,6 @@
file->state.selected = 0;
}
sd->selection.files = evas_list_free(sd->selection.files);
- sd->selection.files = NULL;
sd->selection.current_file = NULL;
}
@@ -1125,8 +1124,8 @@
// dir_entry2->d_off = dir_entry->d_off; // not portable
// dir_entry2->d_reclen = dir_entry->d_reclen; // note portable
dir_entry2->d_type = dir_entry->d_type;
- memcpy(dir_entry2->d_name, dir_entry->d_name, NAME_MAX);
- dir_entry2->d_name[NAME_MAX] = 0;
+ strncpy(dir_entry2->d_name, dir_entry->d_name, NAME_MAX);
+ printf("%s %s\n", dir_entry2->d_name, dir_entry->d_name);
files = evas_list_append(files, dir_entry2);
}
@@ -2088,7 +2087,7 @@
{
if ((file->dir_entry->d_type == 4) && (ev->flags ==
EVAS_BUTTON_DOUBLE_CLICK))
{
- char *fullname;
+ char *fullname = NULL;
file->sd->drag.start = 0;
@@ -2102,9 +2101,9 @@
{
char path[PATH_MAX];
if (!strcmp(file->sd->dir, "/"))
- snprintf(fullname, sizeof(path), "/%s",
file->dir_entry->d_name);
+ snprintf(path, sizeof(path), "/%s", file->dir_entry->d_name);
else
- snprintf(fullname, sizeof(path), "%s/%s", file->sd->dir,
file->dir_entry->d_name);
+ snprintf(path, sizeof(path), "%s/%s", file->sd->dir,
file->dir_entry->d_name);
fullname = strdup(path);
}
@@ -2136,7 +2135,6 @@
file->sd->drag.file = file;
printf("drag file: %s\n", file->dir_entry->d_name);
-#if 0
if (!file->state.clicked)
{
if
(evas_key_modifier_is_set(evas_key_modifier_get(file->sd->evas), "Control"))
@@ -2157,7 +2155,6 @@
_e_fm_selections_add(file);
}
}
-#endif
}
}
else if (ev->button == 3)
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_int_menus.c,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -3 -r1.104 -r1.105
--- e_int_menus.c 10 Oct 2005 19:27:22 -0000 1.104
+++ e_int_menus.c 10 Oct 2005 20:40:35 -0000 1.105
@@ -144,12 +144,10 @@
e_menu_item_callback_set(mi, _e_int_menus_main_run, NULL);
}
-#if 0
mi = e_menu_item_new(m);
e_menu_item_label_set(mi, _("File Manager"));
e_util_menu_item_edje_icon_set(mi, "enlightenment/fileman");
e_menu_item_callback_set(mi, _e_int_menus_main_fm, NULL);
-#endif
subm = e_int_menus_config_new();
dat->config = subm;
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs