aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/icu/files/larger-cmd-size.patch
blob: 74a84f17ba34c8c235ca356266112ebd16ff1e6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Allocate a larger memory size for cmd

The length of the command line can be longer than 1024 sometimes,
which will cause a "Segmentation fault" error.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>

Upstream-Status: Pending
---
 tools/pkgdata/pkgdata.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/pkgdata/pkgdata.c b/tools/pkgdata/pkgdata.c
--- a/tools/pkgdata/pkgdata.c
+++ b/tools/pkgdata/pkgdata.c
@@ -439,7 +439,7 @@ main(int argc, char* argv[]) {
 /* POSIX - execute makefile */
 static int executeMakefile(const UPKGOptions *o)
 {
-    char cmd[1024];
+    char cmd[2048];
     /*char pwd[1024];*/
     const char *make;
     int rc;
-- 
1.7.10.2