aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/edje/src/bin/edje_player.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libraries/edje/src/bin/edje_player.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libraries/edje/src/bin/edje_player.c b/libraries/edje/src/bin/edje_player.c
index 4d0c0a3..208fbb4 100644
--- a/libraries/edje/src/bin/edje_player.c
+++ b/libraries/edje/src/bin/edje_player.c
@@ -20,12 +20,6 @@
20#include <Ecore_Evas.h> 20#include <Ecore_Evas.h>
21#include <Edje.h> 21#include <Edje.h>
22 22
23#ifdef _WIN32
24# define FMT_UCHAR "%c"
25#else
26# define FMT_UCHAR "%hhu"
27#endif
28
29struct opts { 23struct opts {
30 char *file; 24 char *file;
31 char *group; 25 char *group;
@@ -554,7 +548,7 @@ static unsigned char _parse_color(__UNUSED__ const Ecore_Getopt *parser, __UNUSE
554{ 548{
555 unsigned char *color = (unsigned char *)storage->ptrp; 549 unsigned char *color = (unsigned char *)storage->ptrp;
556 550
557 if (sscanf(str, FMT_UCHAR "," FMT_UCHAR "," FMT_UCHAR, color, color + 1, color + 2) != 3) 551 if (sscanf(str, "%hhu,%hhu,%hhu", color, color + 1, color + 2) != 3)
558 { 552 {
559 fprintf(stderr, "ERROR: incorrect color value '%s'\n", str); 553 fprintf(stderr, "ERROR: incorrect color value '%s'\n", str);
560 return 0; 554 return 0;