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:
thunder2 2012-04-17 11:38:52 +00:00
parent 33f4d4f2b8
commit d52904e7c6

View File

@ -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;