Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | pkgdata.cpp: use LARGE_BUFFER_MAX_SIZE for cmd |
| 2 | |
| 3 | Use LARGE_BUFFER_MAX_SIZE for cmd rather than SMALL_BUFFER_MAX_SIZE, |
| 4 | otherwise there was a Segmentation fault error when the command line is |
| 5 | long, this should be a misplay since other cmd uses |
| 6 | LARGE_BUFFER_MAX_SIZE. |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | |
| 10 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> |
| 11 | --- |
| 12 | tools/pkgdata/pkgdata.cpp | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/tools/pkgdata/pkgdata.cpp b/tools/pkgdata/pkgdata.cpp |
| 16 | --- a/tools/pkgdata/pkgdata.cpp |
| 17 | +++ b/tools/pkgdata/pkgdata.cpp |
| 18 | @@ -1019,7 +1019,7 @@ normal_symlink_mode: |
| 19 | |
| 20 | static int32_t pkg_installLibrary(const char *installDir, const char *targetDir, UBool noVersion) { |
| 21 | int32_t result = 0; |
| 22 | - char cmd[SMALL_BUFFER_MAX_SIZE]; |
| 23 | + char cmd[LARGE_BUFFER_MAX_SIZE]; |
| 24 | |
| 25 | sprintf(cmd, "cd %s && %s %s %s%s%s", |
| 26 | targetDir, |
| 27 | -- |
| 28 | 1.7.10.4 |
| 29 | |