summaryrefslogtreecommitdiff
path: root/src/lib/efreet/efreet_mime.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-07-16 19:49:31 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-07-16 19:49:31 +0900
commit27553f0500e0e309bdba4c82f7c2b59e2841f48b (patch)
tree8ef70405292e5f13ac7749f8eb51b80f4316a0e0 /src/lib/efreet/efreet_mime.c
parent604fac41662a945b89086a79815af829faa562fd (diff)
fix clang sizeof complaint
Diffstat (limited to '')
-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;