e/shot: use mkstemps when template has ext

SVN revision: 79247
This commit is contained in:
Sebastian Dransfeld 2012-11-13 21:35:40 +00:00
parent e6005b1b3d
commit 2723076d62
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ _win_share_cb(void *data __UNUSED__, void *data2 __UNUSED__)
if (quality == 100) snprintf(buf, sizeof(buf), "/tmp/e-shot-XXXXXX.png");
else snprintf(buf, sizeof(buf), "/tmp/e-shot-XXXXXX.jpg");
if (!mkstemp(buf))
if (!mkstemps(buf, 4))
{
e_util_dialog_show(_("Error - Can't create file"),
_("Cannot create temporary file '%s': %s"),