strncpy(pkg_detail_info->pkg_type, "wgt", PKG_TYPE_STRING_LEN_MAX);
if (!configInfo.tizenPkgId.IsNull()) {
strncpy(pkg_detail_info->pkgid,
- DPL::ToUTF8String(*configInfo.tizenPkgId).c_str(), PKG_TYPE_STRING_LEN_MAX);
+ DPL::ToUTF8String(*configInfo.tizenPkgId).c_str(), PKG_TYPE_STRING_LEN_MAX - 1);
}
if (!configInfo.version.IsNull()) {
strncpy(pkg_detail_info->version,
DPL::ToUTF8String(*configInfo.version).c_str(),
- PKG_VERSION_STRING_LEN_MAX);
+ PKG_VERSION_STRING_LEN_MAX - 1);
}
DPL::Optional<DPL::String> name;
}
if( !name.IsNull()) {
- strncpy(pkg_detail_info->pkg_name, DPL::ToUTF8String(*name).c_str(), PKG_NAME_STRING_LEN_MAX);
+ strncpy(pkg_detail_info->pkg_name, DPL::ToUTF8String(*name).c_str(), PKG_NAME_STRING_LEN_MAX - 1);
}
if (!desc.IsNull()) {
if (!configInfo.authorName.IsNull()) {
strncpy(pkg_detail_info->author,
DPL::ToUTF8String(*configInfo.authorName).c_str(),
- PKG_VALUE_STRING_LEN_MAX);
+ PKG_VALUE_STRING_LEN_MAX - 1);
}
std::string icon_name;