jaehyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b9c24fa951c852d267702e318c78b7dcbdd3c3e0

commit b9c24fa951c852d267702e318c78b7dcbdd3c3e0
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Wed Aug 26 13:30:15 2015 +0900

    edje_cc_out: Fix edje_cc compile error with script on Windows.
    
    On Windows, PATH_MAX is 260 and PATH_MAX is used as string buffer
    size in edje_cc compile. This causes edje_cc compile error when the edc
    file contains "script" keyword and the length of file paths is
    relatively long.
    To resolve this problem, change the string buffer size in edje_cc
    compile.
    
    @fix
---
 src/bin/edje/edje_cc_out.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index f96e2f3..6a85f66 100755
--- a/src/bin/edje/edje_cc_out.c
+++ b/src/bin/edje/edje_cc_out.c
@@ -535,7 +535,7 @@ data_thread_head(void *data, Ecore_Thread *thread 
EINA_UNUSED)
 {
    Head_Write *hw = data;
    int bytes = 0;
-   char buf[PATH_MAX];
+   char buf[EINA_PATH_MAX];
 
    if (edje_file)
      {
@@ -628,8 +628,8 @@ data_thread_fonts(void *data, Ecore_Thread *thread 
EINA_UNUSED)
    Eina_File *f = NULL;
    void *m = NULL;
    int bytes = 0;
-   char buf[PATH_MAX];
-   char buf2[PATH_MAX];
+   char buf[EINA_PATH_MAX];
+   char buf2[EINA_PATH_MAX];
 
    f = eina_file_open(fc->fn->file, 0);
    if (f)
@@ -821,7 +821,7 @@ static void
 data_thread_image(void *data, Ecore_Thread *thread EINA_UNUSED)
 {
    Image_Write *iw = data;
-   char buf[PATH_MAX], buf2[PATH_MAX];
+   char buf[PATH_MAX], buf2[EINA_PATH_MAX];
    unsigned int *start, *end;
    Eina_Bool opaque = EINA_TRUE;
    int bytes = 0;
@@ -1199,7 +1199,7 @@ static void
 data_thread_mo(void *data, Ecore_Thread *thread EINA_UNUSED)
 {
    Mo_Write *mw = data;
-   char buf[PATH_MAX];
+   char buf[EINA_PATH_MAX];
    Eina_List *ll;
 
    char *dir_path = NULL;
@@ -1309,7 +1309,7 @@ data_write_mo(Eet_File *ef, int *mo_num)
         int i;
         char *po_entry;
         char *sub_str;
-        char buf[PATH_MAX];
+        char buf[EINA_PATH_MAX];
         Eina_List *ll;
         char *dir_path = NULL;
         char mo_path[PATH_MAX];
@@ -1776,7 +1776,7 @@ data_write_scripts(Eet_File *ef)
      {
        Code *cd = eina_list_data_get(l);
         Script_Write *sc;
-        char buf[PATH_MAX];
+        char buf[EINA_PATH_MAX];
 
        if (cd->is_lua)
          continue;

-- 


Reply via email to