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:
parent
48af66cd17
commit
757b21f653
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue