eet: eet_connection.c fixed memory allocation Changed the usage of alloca() to malloc() to support big-mem-alloc This was required to support Clouseau

Signed-off-by: Aharon Hillel <a.hillel@samsung.com>

SVN revision: 83010
This commit is contained in:
Aharon Hillel 2013-01-20 08:43:29 +00:00 committed by Daniel Zaoui
parent 44732c72d9
commit dad5336272
1 changed files with 3 additions and 1 deletions

View File

@ -139,13 +139,15 @@ _eet_connection_raw_send(Eet_Connection *conn,
/* Message should always be under MAX_MSG_SIZE */
if (data_size > MAX_MSG_SIZE) return EINA_FALSE;
message = alloca(data_size + (sizeof(int) * 2));
message = malloc(data_size + (sizeof(int) * 2));
message[0] = htonl(MAGIC_EET_DATA_PACKET);
message[1] = htonl(data_size);
memcpy(message + 2, data, data_size);
conn->eet_write_cb(message,
data_size + (sizeof(int) * 2),
conn->user_data);
free(message);
return EINA_TRUE;
}