summaryrefslogtreecommitdiff
path: root/legacy/eet/src
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-07-16 10:58:30 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-07-16 10:58:30 +0000
commit48cd6930f1bdca7ec4293e9cef99efc597ad682d (patch)
treee79bff08b3248dfb58d9a8357b329d4b4a0590da /legacy/eet/src
parentecffd3ae2ff932dadd93ac29531541bb3c8799d4 (diff)
eet: fix possible wrong size decoding for simple type.
SVN revision: 73923
Diffstat (limited to 'legacy/eet/src')
-rw-r--r--legacy/eet/src/lib/eet_data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/legacy/eet/src/lib/eet_data.c b/legacy/eet/src/lib/eet_data.c
index 1eb822a8ca..bd6bbd9d5e 100644
--- a/legacy/eet/src/lib/eet_data.c
+++ b/legacy/eet/src/lib/eet_data.c
@@ -3698,7 +3698,7 @@ eet_data_get_array(Eet_Free_Context *context,
3698 if (ede) 3698 if (ede)
3699 { 3699 {
3700 if (IS_POINTER_TYPE(type)) 3700 if (IS_POINTER_TYPE(type))
3701 subsize = eet_basic_codec[ede->type].size; 3701 subsize = eet_basic_codec[ede->type - 1].size;
3702 else 3702 else
3703 subsize = ede->subtype->size; 3703 subsize = ede->subtype->size;
3704 3704
@@ -4417,7 +4417,7 @@ eet_data_put_array(Eet_Dictionary *ed,
4417 eet_data_encode(ed, ds, data, ede->name, size, ede->type, ede->group_type); 4417 eet_data_encode(ed, ds, data, ede->name, size, ede->type, ede->group_type);
4418 4418
4419 if (IS_POINTER_TYPE(ede->type)) 4419 if (IS_POINTER_TYPE(ede->type))
4420 subsize = eet_basic_codec[ede->type].size; 4420 subsize = eet_basic_codec[ede->type - 1].size;
4421 else 4421 else
4422 subsize = ede->subtype->size; 4422 subsize = ede->subtype->size;
4423 4423