projects
/
icu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8ef8ff
)
ICU-12566 Fix limitation of file name size longer than 300 characters
author
Michael Ow
<mow@svn.icu-project.org>
Fri, 24 Jun 2016 20:38:24 +0000
(20:38 +0000)
committer
Michael Ow
<mow@svn.icu-project.org>
Fri, 24 Jun 2016 20:38:24 +0000
(20:38 +0000)
X-SVN-Rev: 38882
icu4c/source/tools/gensprep/gensprep.c
patch
|
blob
|
history
diff --git
a/icu4c/source/tools/gensprep/gensprep.c
b/icu4c/source/tools/gensprep/gensprep.c
index a20ee63194c2c756b499e8af943e65ff2a6f1d35..6d7222c75f3ebddd4baa69f0d82c8304e2cc7ee0 100644
(file)
--- a/
icu4c/source/tools/gensprep/gensprep.c
+++ b/
icu4c/source/tools/gensprep/gensprep.c
@@
-203,7
+203,7
@@
main(int argc, char* argv[]) {
#else
setUnicodeVersion(options[UNICODE_VERSION].value);
- filename = (char* ) uprv_malloc(uprv_strlen(srcDir) +
30
0); /* hopefully this should be enough */
+ filename = (char* ) uprv_malloc(uprv_strlen(srcDir) +
uprv_strlen(inputFileName) + 2
0); /* hopefully this should be enough */
/* prepare the filename beginning with the source dir */
if(uprv_strchr(srcDir,U_FILE_SEP_CHAR) == NULL && uprv_strchr(srcDir,U_FILE_ALT_SEP_CHAR) == NULL){