edbus: Use snprintf to be sure

Are dbus function calls with more than 1000 arguments possible?
If so -> prevent buffer overflow

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
This commit is contained in:
Daniel Willmann 2013-02-18 12:26:27 +00:00
parent cd9b6bed62
commit dda109a906
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ _message_iter_struct_to_eina_value(EDBus_Message_Iter *iter)
Eina_Value *v;
m = calloc(1, sizeof(Eina_Value_Struct_Member));
sprintf(name, ARG, z);
snprintf(name, 7, ARG, z);
m->name = strdup(name);
offset = _type_offset(type, offset);
m->offset = offset;