Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
Fix strcat
Browse files Browse the repository at this point in the history
Co-Authored-By: xybp888 <[email protected]>
  • Loading branch information
s0uthwest and xybp888 committed Feb 11, 2019
1 parent bef8186 commit 51a1c17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions tsschecker/tss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1226,8 +1226,7 @@ char* tss_request_send_raw(char* request, const char* server_url_string, int* re
status_code = 0;
info("success\n");
break;
}
else {
} else {
info("failure\n");
}

Expand Down Expand Up @@ -1324,7 +1323,6 @@ plist_t tss_request_send(plist_t tss_request, const char* server_url_string) {
}

static int tss_response_get_data_by_key(plist_t response, const char* name, unsigned char** buffer, unsigned int* length) {

plist_t node = plist_dict_get_item(response, name);
if (!node || plist_get_node_type(node) != PLIST_DATA) {
debug("DEBUG: %s: No entry '%s' in TSS response\n", __func__, name);
Expand Down
2 changes: 1 addition & 1 deletion tsschecker/tsschecker.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ char *getBuildManifest(char *url, const char *device, const char *version, const

if (buildID){
strcat(fileDir, "_");
strcat(fileDir, buildID, strlen);
strcat(fileDir, buildID);
}

if (isOta) strcat(fileDir, "ota");
Expand Down

0 comments on commit 51a1c17

Please sign in to comment.