express: Used eina_file_mkstemp instead of mkstemps.

Summary: Instead of using mkstemps, using eina_file_mkstemp. Thought this would be better.

Reviewers: devilhorns

Differential Revision: https://phab.enlightenment.org/D2139
This commit is contained in:
Srivardhan Hebbar 2015-03-11 10:49:30 -04:00 committed by Chris Michael
parent 48af66cd17
commit 757b21f653
1 changed files with 1 additions and 6 deletions

View File

@ -49,12 +49,7 @@ media_add(Evas_Object *obj, Gravatar *g)
int tmpfd;
Ecore_Con_Url *url;
#ifdef _WIN32
snprintf(buf, sizeof(buf), "%s/expressXXXXXX.png", evil_tmpdir_get());
#else
snprintf(buf, sizeof(buf), "/tmp/expressXXXXXX.png");
#endif
tmpfd = mkstemps(buf, 4);
tmpfd = eina_file_mkstemp("express", &buf);
g->img_file = eina_stringshare_add(buf);
g->tmpfd = tmpfd;