2 # Patch was also submitted with https://ssl.icu-project.org/trac/ticket/10129
3 # of which the outcome should be monitored.
5 --- misc/icu/source/common/wintz.c
6 +++ misc/build/icu/source/common/wintz.c
8 char apiStdName[MAX_LENGTH_ID];
9 char regStdName[MAX_LENGTH_ID];
10 char tmpid[MAX_LENGTH_ID];
11 - int32_t apiStdLength = 0;
17 /* Convert the wchar_t* standard name to char* */
18 uprv_memset(apiStdName, 0, sizeof(apiStdName));
19 - u_strFromWCS(apiStd, MAX_LENGTH_ID, &apiStdLength, apiTZI.StandardName, -1, &status);
20 - u_austrncpy(apiStdName, apiStd, apiStdLength);
21 + u_strFromWCS(apiStd, MAX_LENGTH_ID, NULL, apiTZI.StandardName, -1, &status);
22 + u_austrncpy(apiStdName, apiStd, sizeof(apiStdName) - 1);