mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fixed critical bug introduced by one of my latest changes.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5106 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
33f4d4f2b8
commit
d52904e7c6
@ -204,7 +204,7 @@ std::string p3DistribSecurity::getBinDataSign(void *data, int len)
|
||||
std::string id;
|
||||
for(uint32_t i = 0; i < CERTSIGNLEN; i++)
|
||||
{
|
||||
rs_sprintf(id, "%02x", (uint16_t) (((uint8_t *) (tmp))[i]));
|
||||
rs_sprintf_append(id, "%02x", (uint16_t) (((uint8_t *) (tmp))[i]));
|
||||
}
|
||||
|
||||
return id;
|
||||
@ -363,7 +363,7 @@ std::string p3DistribSecurity::getRsaKeySign(RSA *pubkey)
|
||||
std::string id;
|
||||
for(uint32_t i = 0; i < CERTSIGNLEN; i++)
|
||||
{
|
||||
rs_sprintf(id, "%02x", (uint16_t) (((uint8_t *) (tmp))[i]));
|
||||
rs_sprintf_append(id, "%02x", (uint16_t) (((uint8_t *) (tmp))[i]));
|
||||
}
|
||||
|
||||
return id;
|
||||
|
Loading…
Reference in New Issue
Block a user