From 642dd61fafacbe99da41878aaffeaa1693c10723 Mon Sep 17 00:00:00 2001 From: Thiep Ha Date: Wed, 9 Dec 2015 11:51:06 +0900 Subject: [PATCH] ecore_evas_extn: fix crashing while create temp file The temp file template of mkstemp is constant string. This makes mkstemp crash. We change it to string array to fix it. @tizen_fix Change-Id: Ib586ca0f227d75808ed25dd24221f4ffe181adef --- src/modules/ecore_evas/engines/extn/ecore_evas_extn_buf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/ecore_evas/engines/extn/ecore_evas_extn_buf.c b/src/modules/ecore_evas/engines/extn/ecore_evas_extn_buf.c index b210e4e..5e0b4f7 100644 --- a/src/modules/ecore_evas/engines/extn/ecore_evas_extn_buf.c +++ b/src/modules/ecore_evas/engines/extn/ecore_evas_extn_buf.c @@ -51,7 +51,8 @@ _extnbuf_new(const char *base, int id, Eina_Bool sys, int num, { //TIZEN ONLY (150908): security issue. To access any application, it needs smack rule. //b->lockfd = eina_file_mkstemp("ee-lock-XXXXXX", &tmp); - b->lockfd = mkstemp("/run/.efl/ee-lock-XXXXXX"); + char file[] = "/run/.efl/ee-lock-XXXXXX"; + b->lockfd = mkstemp(file); // if (b->lockfd < 0) goto err; b->lock = eina_stringshare_add(file); -- 2.7.4