Skip to content

Commit

Permalink
Download can accept any size file id
Browse files Browse the repository at this point in the history
  • Loading branch information
aleitner authored and braydonf committed Feb 24, 2017
1 parent effe0b5 commit a9cdeb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/downloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,7 @@ int storj_bridge_resolve_file(storj_env_t *env,
if (!file_id_hash) {
return STORJ_MEMORY_ERROR;
}
ripemd160_of_str((uint8_t *)file_id, FILE_ID_SIZE, file_id_hash);
ripemd160_of_str((uint8_t *)file_id, strlen(file_id), file_id_hash);
file_id_hash[RIPEMD160_DIGEST_SIZE] = '\0';

uint8_t *decrypt_ctr = calloc(AES_BLOCK_SIZE, sizeof(uint8_t));
Expand Down

0 comments on commit a9cdeb5

Please sign in to comment.