forked from enlightenment/efl
parent
1a14377b08
commit
4e6ce1caf5
|
@ -303,6 +303,8 @@ efreet_mime_cb_update_file(void *data __UNUSED__,
|
|||
Ecore_List *datadirs = NULL;
|
||||
const char *datahome = NULL;
|
||||
|
||||
printf("Updated: %s\n", path);
|
||||
|
||||
if (!(datahome = efreet_data_home_get()))
|
||||
return;
|
||||
|
||||
|
@ -338,7 +340,7 @@ efreet_mime_init_files(void)
|
|||
/*
|
||||
* Add our file monitors
|
||||
* We watch the directories so we can watch for new files
|
||||
*/
|
||||
*/
|
||||
datadir = datahome;
|
||||
ecore_list_goto_first(datadirs);
|
||||
while (datadir)
|
||||
|
@ -806,7 +808,7 @@ efreet_mime_shared_mimeinfo_magic_parse(char *data, int size)
|
|||
|
||||
case '=':
|
||||
ptr++;
|
||||
entry->value_len = (*ptr) << 8 | (unsigned short)(*(ptr + 1));
|
||||
entry->value_len = ntohs(*((short*)(ptr)));
|
||||
ptr += 2;
|
||||
|
||||
entry->value = NEW(1, entry->value_len);
|
||||
|
|
Loading…
Reference in New Issue