This should work now for big endian.

SVN revision: 30592
This commit is contained in:
Nicholas Hughart 2007-07-04 15:29:29 +00:00
parent 1a14377b08
commit 4e6ce1caf5
1 changed files with 4 additions and 2 deletions

View File

@ -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);