Lines Matching refs:update
68 (void)memset_s(msg.update, sizeof(msg.update), 0, sizeof(msg.update));
71 if (strncat_s(msg.update, sizeof(msg.update), arg.c_str(), strlen(arg.c_str()) + 1) != EOK) {
75 if (strncat_s(msg.update, sizeof(msg.update), "\n", strlen("\n") + 1) != EOK) {
96 if (strncat_s(msg.update, sizeof(msg.update), buffer, strlen(buffer) + 1) != EOK) {
216 (void)memset_s(msg.update, sizeof(msg.update), 0, sizeof(msg.update));
219 if (strcpy_s(msg.update, sizeof(msg.update) - 1, extData.c_str()) != EOK) {
220 LOG(ERROR) << "failed to copy update";
223 msg.update[sizeof(msg.update) - 1] = 0;
743 // if boot.update is empty, read from command.The Misc partition may have dirty data,
744 // so strlen(boot.update) is not used, which can cause system exceptions.
745 if (boot.update[0] == '\0' && !access(COMMAND_FILE, 0)) {
751 boot.update[sizeof(boot.update) - 1] = '\0';
752 std::vector<std::string> parseParams = Utils::SplitString(boot.update, "\n");
831 (void)memset_s(msg.update, sizeof(msg.update), 0, sizeof(msg.update));
834 if (strncat_s(msg.update, sizeof(msg.update), arg.c_str(), strlen(arg.c_str()) + 1) != EOK) {
838 if (strncat_s(msg.update, sizeof(msg.update), "\n", strlen("\n") + 1) != EOK) {
856 if (strncat_s(msg.update, sizeof(msg.update), buffer, strlen(buffer) + 1) != EOK) {