summaryrefslogtreecommitdiff
path: root/src/bin/edje
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-22 18:23:23 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-22 20:14:58 +0900
commite9afad0b07b1c003f2899cf3e2d4209fe19eb0d0 (patch)
tree1e624892f13f5d8678e0afc4298a0ec049f2137d /src/bin/edje
parent554563cc212cb1c1814bf8ef74a04e7651c096c6 (diff)
check strrchr to be sure
this fixes CID 1039342
Diffstat (limited to 'src/bin/edje')
-rw-r--r--src/bin/edje/edje_decc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/edje/edje_decc.c b/src/bin/edje/edje_decc.c
index 3c1259e663..9f87771ada 100644
--- a/src/bin/edje/edje_decc.c
+++ b/src/bin/edje/edje_decc.c
@@ -548,6 +548,11 @@ output(void)
548 snprintf(out1, sizeof(out1), "%s/%s", outdir, sample->src); 548 snprintf(out1, sizeof(out1), "%s/%s", outdir, sample->src);
549 pp = strdup(out1); 549 pp = strdup(out1);
550 p = strrchr(pp, '/'); 550 p = strrchr(pp, '/');
551 if (!p)
552 {
553 ERR("Cannot find '/' in file");
554 exit(-1);
555 }
551 *p = 0; 556 *p = 0;
552 if (strstr(pp, "../")) 557 if (strstr(pp, "../"))
553 { 558 {