use PATH_MAX to define buffer size
authorenglebass <englebass@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 1 Mar 2010 19:05:37 +0000 (19:05 +0000)
committerenglebass <englebass@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 1 Mar 2010 19:05:37 +0000 (19:05 +0000)
in snprintf on the buffer PATH_MAX is used, so also use it to define
buffer size

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@46729 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/edje_cc_out.c

index 6318aca..b7b8cbc 100644 (file)
@@ -858,8 +858,8 @@ data_write_scripts(Eet_File *ef)
 
    for (i = 0, l = codes; l; l = eina_list_next(l), i++)
      {
-       char tmpn[4096];
-       char tmpo[4096];
+       char tmpn[PATH_MAX];
+       char tmpo[PATH_MAX];
        int fd;
        Code *cd = eina_list_data_get(l);