| /base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
| H A D | cert_manager_query.c | 76 if (sprintf_s(pathBuf, MAX_PATH_LEN, "%s/%s", useridPath, dire.fileName) < 0) {
in ConstrutPathList() 87 if (sprintf_s((char *)cPathList[i].data, cPathList[i].size, "%s", pathBuf) < 0) {
in ConstrutPathList() 176 if (sprintf_s((char *)cPathList[0].data, cPathList[0].size, "%s", SYSTEM_CA_STORE) < 0) {
in CmGetSysCertPathList() 177 CM_LOG_E("sprintf_s path failed");
in CmGetSysCertPathList() 236 if (sprintf_s((char *)certFile->path.data, certFile->path.size, "%s", path) < 0) {
in GetCertNameAndPath() 241 if (sprintf_s((char *)certFile->fileName.data, certFile->fileName.size, "%s", fileName) < 0) {
in GetCertNameAndPath()
|
| /test/xts/acts/distributeddatamgr_lite/kv_store_posix/src/ |
| H A D | KvStoreTest.cpp | 74 size = sprintf_s(keytemp, MAX_KEY_LEN_TEST, "%s_%d", key, i); in TouchKVFiles() 78 size = sprintf_s(valuetemp, MAX_VALUE_LEN_TEST, "%s_%d", value, i); in TouchKVFiles() 115 size = sprintf_s(keytemp, MAX_KEY_LEN_TEST, "%s_%d", key, num); in ReadKVFiles() 119 size = sprintf_s(valuetemp, MAX_VALUE_LEN_TEST, "%s_%d", value, num); in ReadKVFiles() 153 size = sprintf_s(keytemp, MAX_KEY_LEN_TEST, "%s_%d", key, i); in DeleteKVFiles()
|
| /test/xts/acts/distributeddatamgr_lite/kv_store_hal/src/ |
| H A D | kvstore_func_test.c | 74 size = sprintf_s(keytemp, MAX_KEY_LEN_TEST, "%s_%d", key, i); in SetKVFiles() 78 size = sprintf_s(valuetemp, MAX_VALUE_LEN_TEST, "%s_%d", value, i); in SetKVFiles() 121 size = sprintf_s(keytemp, MAX_KEY_LEN_TEST, "%s_%d", key, loop); in ReadKVFiles() 125 size = sprintf_s(valuetemp, MAX_VALUE_LEN_TEST, "%s_%d", value, loop); in ReadKVFiles() 165 size = sprintf_s(keytemp, MAX_KEY_LEN_TEST, "%s_%d", key, i); in DeleteKVFiles()
|
| /base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/ |
| H A D | hks_storage.c | 580 int32_t offset = sprintf_s(dePath, HKS_MAX_DIRENT_FILE_LEN, "%s/%s", in DeleteUserIdMainPathAndBakPath() 590 offset = sprintf_s(cePath, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s", in DeleteUserIdMainPathAndBakPath() 600 offset = sprintf_s(ecePath, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s", in DeleteUserIdMainPathAndBakPath() 634 int32_t offset = sprintf_s(dePath, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s", in DeleteUidMainPathAndBakPath() 644 offset = sprintf_s(cePath, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s/%s", in DeleteUidMainPathAndBakPath() 654 offset = sprintf_s(ecePath, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s/%s", in DeleteUidMainPathAndBakPath() 706 int32_t offset = sprintf_s(userProcess, HKS_MAX_DIRENT_FILE_LEN, "%s/%s", HKS_KEY_STORE_PATH, userData); in HksServiceDeleteUserIDKeyAliasFile() 750 int32_t offset = sprintf_s(userProcess, HKS_MAX_DIRENT_FILE_LEN, "%s/%s/%s", in HksServiceDeleteUIDKeyAliasFile()
|
| /base/startup/appspawn/standard/ |
| H A D | appspawn_main.c | 55 len = sprintf_s(buf, sizeof(buf), "%.*s%s", len, preload, pos + strlen(APPSPAWN_PRELOAD)); in CheckPreload() 67 int len = sprintf_s(buf, sizeof(buf), "%s:" APPSPAWN_PRELOAD, preload); in CheckPreload()
|
| /base/startup/init/simulator/parameter/src/param_impl_posix/ |
| H A D | param_impl_posix.c | 76 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, "%s%s", DATA_PATH, key) < 0) { in GetSysParam() 115 if (sprintf_s(keyPath, MAX_KEY_PATH + 1, "%s%s", DATA_PATH, key) < 0) { in SetSysParam()
|
| /base/startup/appspawn/modules/sandbox/ |
| H A D | sandbox_expand.c | 60 int len = sprintf_s(context->buffer[0].buffer, context->buffer[0].bufferLen, "%s%s/%s/%s", in MountAllHsp() 64 len = sprintf_s(context->buffer[1].buffer, context->buffer[1].bufferLen, "%s%s%s/%s", in MountAllHsp() 113 int len = sprintf_s(context->buffer[0].buffer, context->buffer[0].bufferLen, "%s%s%s", in MountAllGroup() 161 int len = sprintf_s(sandboxContext->buffer[1].buffer, sandboxContext->buffer[1].bufferLen, "%s%s", in SetOverlayAppPath()
|
| H A D | appspawn_mount_template.c | 147 len = sprintf_s(buffer + currLen, bufferSize - currLen - 1, " %s ", "|"); in DumpSandboxFlags() 152 len = sprintf_s(buffer + currLen, bufferSize - currLen, "%s", flagsInfos[i].name); in DumpSandboxFlags()
|
| /base/startup/appspawn/service/hnp/base/ |
| H A D | hnp_zip.c | 188 if (sprintf_s(fullPath, MAX_FILE_PATH_LEN, "%s%s", sourcePath, entry->d_name) < 0) {
in ZipAddDir() 259 ret = sprintf_s(sourcePath, MAX_FILE_PATH_LEN, "%s%c", inputDir, DIR_SPLIT_SYMBOL);
in HnpZip() 374 ret = sprintf_s(hnpSignMapInfos[sum].key, MAX_FILE_PATH_LEN, "%s!/%s", hnpSignKeyPrefix, key);
in HnpInstallAddSignMap() 453 if (sprintf_s(filePath, MAX_FILE_PATH_LEN, "%s/%s", outputDir, slash) < 0) {
in HnpUnZip()
|
| /base/startup/init/test/moduletest/ |
| H A D | param_test_module.c | 46 int ret = sprintf_s(buffer, sizeof(buffer), "%d", count);
in PluginParamCmdWriteParam()
|
| /base/hiviewdfx/hilog_lite/frameworks/featured/ |
| H A D | hiview_log.c | 887 textLen = sprintf_s(formatBuf.str, SECUREC_BUFFER_SIZE + 1, (char *)fltFmtStr, in HiLogSecOutputS() 890 textLen = sprintf_s(formatBuf.str, SECUREC_BUFFER_SIZE + 1, (char *)fltFmtStr, in HiLogSecOutputS() 893 textLen = sprintf_s(formatBuf.str, SECUREC_BUFFER_SIZE + 1, (char *)fltFmtStr, in HiLogSecOutputS() 896 textLen = sprintf_s(formatBuf.str, SECUREC_BUFFER_SIZE + 1, (char *)fltFmtStr, tmp); in HiLogSecOutputS() 903 textLen = sprintf_s(formatBuf.str, SECUREC_BUFFER_SIZE + 1, (char *)fltFmtStr, in HiLogSecOutputS() 906 textLen = sprintf_s(formatBuf.str, SECUREC_BUFFER_SIZE + 1, (char *)fltFmtStr, in HiLogSecOutputS() 909 textLen = sprintf_s(formatBuf.str, SECUREC_BUFFER_SIZE + 1, (char *)fltFmtStr, in HiLogSecOutputS() 912 textLen = sprintf_s(formatBuf.str, SECUREC_BUFFER_SIZE + 1, (char *)fltFmtStr, tmp); in HiLogSecOutputS()
|
| /base/startup/init/services/begetctl/ |
| H A D | modulectl.c | 34 int ret = sprintf_s(combinedArgs, sizeof(combinedArgs), "ohos.servicectrl.%s", argv[0]); in ModuleInstallCmd()
|
| H A D | param_cmd.c | 94 realLen = sprintf_s(buffer, buffSize, "%s", current); in GetRealParameter() 96 realLen = sprintf_s(buffer, buffSize, "%s%s", current, name); in GetRealParameter() 99 realLen = sprintf_s(buffer, buffSize, "%s", current); in GetRealParameter() 101 realLen = sprintf_s(buffer, buffSize, "%s", name); in GetRealParameter()
|
| /test/xts/device_attest/services/core/utils/ |
| H A D | attest_utils_log.c | 63 ret = sprintf_s(outStr, sizeof(outStr), fmt, strDup); in AttestLogAnonyStr()
|
| H A D | attest_utils_file.c | 41 if (sprintf_s(filePath, filePathLen, "%s%s%s", dirPath, "/", fileName) < 0) { in GenFilePath() 189 if (sprintf_s(realPath, realPathLen, "%s%s%s", formatPath, "/", fileName) < 0) { in CreateFileImpl()
|
| /base/hiviewdfx/hiview/plugins/usage_event_report/ |
| H A D | usage_event_report.cpp | 296 if (sprintf_s(lastRTBuf, len, "%" PRIu64, lastReportTime_) < 0) {
in StartServiceByOption() 301 if (sprintf_s(lastSRTBuf, len, "%" PRIu64, lastSysReportTime_) < 0) {
in StartServiceByOption()
|
| /test/xts/device_attest/services/oem_adapter/src/ |
| H A D | device_attest_oem_file.c | 42 if (sprintf_s(filePath, filePathLen, "%s%s%s", dirPath, "/", fileName) < 0) { in OEMGenFilePath() 178 if (sprintf_s(realPath, realPathLen, "%s%s%s", formatPath, "/", fileName) < 0) { in OEMCreateFileImpl()
|
| /test/xts/device_attest_lite/services/core/utils/ |
| H A D | attest_utils_file.c | 40 if (sprintf_s(filePath, filePathLen, "%s%s%s", dirPath, "/", fileName) < 0) { in GenFilePath()
|
| H A D | attest_utils_log.c | 113 ret = sprintf_s(outStr, sizeof(outStr), fmt, strDup); in AttestLogAnonyStr()
|
| /base/hiviewdfx/hidumper/services/native/src/ |
| H A D | dump_manager_cpu_service.cpp | 331 int ret = sprintf_s(format, PROC_CPU_LENGTH, in CreateCPUStatString() 353 int ret = sprintf_s(format, PROC_CPU_LENGTH, in DumpProcInfo() 368 int ret = sprintf_s(format, PROC_CPU_LENGTH, in DumpProcInfo()
|
| /base/global/i18n_lite/frameworks/i18n/src/ |
| H A D | number_format_impl.cpp | 133 int len = isPercentDefault ? static_cast<int>(sprintf_s(buff, NUMBER_MAX, "%.f", adjustNum)) :
in InnerFormat() 134 static_cast<int>(sprintf_s(buff, NUMBER_MAX, defaultData->style.numFormat, adjustNum));
in InnerFormat() 184 int len = static_cast<int>(sprintf_s(buff, NUMBER_MAX, style.entireFormat, result));
in DealWithPercent()
|
| /base/security/dlp_permission_service/services/dlp_permission/sa/mock/ |
| H A D | dlp_credential_service.c | 137 if (sprintf_s(owner, STRING_LEN, "\"ownerAccountName\":\"%s\"", account) <= 0 || in CheckAccount() 138 sprintf_s(user, STRING_LEN, "\"%s\":{", account) <= 0 || in CheckAccount() 139 sprintf_s(everyone, STRING_LEN, "\"%s\":{", "everyone") <= 0) { in CheckAccount() 140 DLP_LOG_ERROR("sprintf_s owner error"); in CheckAccount()
|
| /base/location/frameworks/native/location_ndk/source/ |
| H A D | location_info_callback_host.cpp | 71 auto ret = sprintf_s(location_info.additions, sizeof(location_info.additions), "%s", additionStr.c_str()); in OnLocationReport() 73 LBSLOGE(OHOS::Location::LOCATION_CAPI, "sprintf_s failed, ret: %{public}d", ret); in OnLocationReport()
|
| /base/msdp/device_status/utils/common/include/ |
| H A D | util_napi_error.h | 61 int32_t ret = sprintf_s(buf, sizeof(buf), codeMsg.c_str(), param1, param2); \
|
| /base/startup/init/services/modules/udid/ |
| H A D | udid_adp.c | 46 int len = sprintf_s(buf, sizeof(buf), "%02X", value); in GetSha256Value()
|