service_adaptor_info("[DM] client profile <%s>", client_profile);
char client_name[1024] = {0, };
int client_pid = 0;
- int sr = sscanf(client_profile, "%s%d", client_name, &client_pid);
+ int sr = sscanf(client_profile, "%1000s %10d", client_name, &client_pid);
if (sr == 2) {
service_adaptor_info("[DM] client<%s> pid<%d>", client_name, client_pid);
#ifndef DETAILED_PEER
service_adaptor_info("[DM] client profile <%s>", client_profile);
char client_name[1024] = {0, };
int client_pid = 0;
- int sr = sscanf(client_profile, "%s%d", client_name, &client_pid);
+ int sr = sscanf(client_profile, "%1000s %10d", client_name, &client_pid);
if (sr == 2) {
service_adaptor_info("[DM][dis] client<%s> pid<%d>", client_name, client_pid);
#ifndef DETAILED_PEER
char public_token[1024] = {0,};
char auth_code[1024] = {0,};
- sscanf(server_path, "%[^'?']?auth_code=%s", public_token, auth_code);
+ sscanf(server_path, "%1000[^'?']?auth_code=%1000s", public_token, auth_code);
ret_code = storage_adaptor_download_file_sync_by_public_token(plugin, service->storage_context,
public_token, auth_code, download_path, NULL, &error_code, NULL);
char public_token[1024] = {0,};
char auth_code[1024] = {0,};
- sscanf(server_path, "%[^'?']?auth_code=%s", public_token, auth_code);
+ sscanf(server_path, "%1000[^'?']?auth_code=%1000s", public_token, auth_code);
ret_code = storage_adaptor_download_file_async_by_public_token(plugin, service->storage_context,
public_token, auth_code, download_path, NULL, (void *) &fd, &error_code);