projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9eaf4d
)
bugfix: don't crash when saving screenshots with no file extension
author
Mike Blumenkrantz
<zmike@samsung.com>
Thu, 13 Mar 2014 16:33:35 +0000
(12:33 -0400)
committer
Mike Blumenkrantz
<zmike@samsung.com>
Thu, 13 Mar 2014 16:35:43 +0000
(12:35 -0400)
CID 1132744
src/modules/shot/e_mod_main.c
patch
|
blob
|
history
diff --git
a/src/modules/shot/e_mod_main.c
b/src/modules/shot/e_mod_main.c
index
718f748
..
d6a3b6a
100644
(file)
--- a/
src/modules/shot/e_mod_main.c
+++ b/
src/modules/shot/e_mod_main.c
@@
-162,10
+162,9
@@
_screen_change_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *even
static void
_save_to(const char *file)
{
- char *extn = strrchr(file, '.');
char opts[256];
- if (
!strcasecmp(extn
, ".png"))
+ if (
eina_str_has_extension(file
, ".png"))
snprintf(opts, sizeof(opts), "compress=%i", 9);
else
snprintf(opts, sizeof(opts), "quality=%i", quality);