projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2789920
)
edje edje_cc: use sizeof() instead of constant.
11/88911/2
author
Hermet Park
<hermet@hermet.pe.kr>
Wed, 21 Sep 2016 05:58:22 +0000
(14:58 +0900)
committer
Hermet Park
<chuneon.park@samsung.com>
Wed, 21 Sep 2016 09:48:41 +0000
(
02:48
-0700)
This change is more maintaintable code.
Change-Id: Iac57cff75d6428dbe27ba74146dac811dfea62a7
src/bin/edje/edje_cc_parse.c
patch
|
blob
|
history
diff --git
a/src/bin/edje/edje_cc_parse.c
b/src/bin/edje/edje_cc_parse.c
index
3a431ea
..
1d3d4d6
100644
(file)
--- a/
src/bin/edje/edje_cc_parse.c
+++ b/
src/bin/edje/edje_cc_parse.c
@@
-925,7
+925,7
@@
compile(void)
Eina_List *l;
Edje_Style *stl;
- strncpy(inc, file_in,
4000
);
+ strncpy(inc, file_in,
sizeof(inc)
);
inc[4001] = 0;
p = strrchr(inc, '/');
#ifdef _WIN32