diff options
author | 2024-09-19 00:33:56 +0200 | |
---|---|---|
committer | 2024-09-19 00:33:56 +0200 | |
commit | ad46e149702ece0af81932cc48f8603362102b96 (patch) | |
tree | b9ed311ba0dfb416abb6456552d1cc1a2c7428fe /src/img4.c | |
parent | 17c65b2dfd11b144cf3335b47c203b711fa61911 (diff) | |
download | idevicerestore-ad46e149702ece0af81932cc48f8603362102b96.tar.gz idevicerestore-ad46e149702ece0af81932cc48f8603362102b96.tar.bz2 |
Replace sprintf with snprintf
Diffstat (limited to 'src/img4.c')
-rw-r--r-- | src/img4.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -448,7 +448,7 @@ int img4_stitch_component(const char* component_name, const unsigned char* compo unsigned char *additional_data = NULL; unsigned int additional_size = 0; char *tbm_key = malloc(strlen(component_name) + 5); - sprintf(tbm_key, "%s-TBM", component_name); + snprintf(tbm_key, strlen(component_name)+5, "%s-TBM", component_name); plist_t tbm_dict = plist_dict_get_item(tss_response, tbm_key); free(tbm_key); if (tbm_dict) { |