mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-10535 toolutil/package.cpp: NUL-terminate pkgPrefix
X-SVN-Rev: 34818
This commit is contained in:
parent
cf004a4691
commit
e6656c9e8a
1 changed files with 1 additions and 0 deletions
|
@ -609,6 +609,7 @@ Package::readPackage(const char *filename) {
|
|||
exit(U_INVALID_FORMAT_ERROR);
|
||||
}
|
||||
memcpy(pkgPrefix, s, prefixLength);
|
||||
pkgPrefix[prefixLength]=0;
|
||||
memcpy(prefix, s, ++prefixLength); // include the /
|
||||
} else {
|
||||
// Use the package basename as prefix.
|
||||
|
|
Loading…
Add table
Reference in a new issue