summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/efreet/efreet_mime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/efreet/efreet_mime.c b/src/lib/efreet/efreet_mime.c
index 4c52d1669c..9dcec0578f 100644
--- a/src/lib/efreet/efreet_mime.c
+++ b/src/lib/efreet/efreet_mime.c
@@ -1130,14 +1130,14 @@ efreet_mime_shared_mimeinfo_magic_parse(char *data, int size)
1130 entry->value_len = ntohs(tshort); 1130 entry->value_len = ntohs(tshort);
1131 ptr += 2; 1131 ptr += 2;
1132 1132
1133 entry->value = NEW(1, entry->value_len); 1133 entry->value = NEW(char, entry->value_len);
1134 memcpy(entry->value, ptr, entry->value_len); 1134 memcpy(entry->value, ptr, entry->value_len);
1135 ptr += entry->value_len; 1135 ptr += entry->value_len;
1136 break; 1136 break;
1137 1137
1138 case '&': 1138 case '&':
1139 ptr++; 1139 ptr++;
1140 entry->mask = NEW(1, entry->value_len); 1140 entry->mask = NEW(char, entry->value_len);
1141 memcpy(entry->mask, ptr, entry->value_len); 1141 memcpy(entry->mask, ptr, entry->value_len);
1142 ptr += entry->value_len; 1142 ptr += entry->value_len;
1143 break; 1143 break;