mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-12566 Fix null strlen check
X-SVN-Rev: 38885
This commit is contained in:
parent
f2f790a6c5
commit
0402053377
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ main(int argc, char* argv[]) {
|
|||
#else
|
||||
|
||||
setUnicodeVersion(options[UNICODE_VERSION].value);
|
||||
filename = (char* ) uprv_malloc(uprv_strlen(srcDir) + uprv_strlen(inputFileName) + 20); /* hopefully this should be enough */
|
||||
filename = (char* ) uprv_malloc(uprv_strlen(srcDir) + uprv_strlen(inputFileName) + (icuUniDataDir == NULL ? 0 : uprv_strlen(icuUniDataDir)) + 40); /* 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){
|
||||
|
|
Loading…
Add table
Reference in a new issue