From dad53362722691b388d074690ff2730ec0ef1eb9 Mon Sep 17 00:00:00 2001 From: Aharon Hillel Date: Sun, 20 Jan 2013 08:43:29 +0000 Subject: [PATCH] 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 SVN revision: 83010 --- src/lib/eet/eet_connection.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/eet/eet_connection.c b/src/lib/eet/eet_connection.c index afb2a49d1e..21e9c1c931 100644 --- a/src/lib/eet/eet_connection.c +++ b/src/lib/eet/eet_connection.c @@ -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; }