edje edje_cc: use sizeof() instead of constant. 11/88911/2
authorHermet Park <hermet@hermet.pe.kr>
Wed, 21 Sep 2016 05:58:22 +0000 (14:58 +0900)
committerHermet 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

index 3a431ea..1d3d4d6 100644 (file)
@@ -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