From d52904e7c6676cda44d1844869b8c8b5e96a2d04 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Tue, 17 Apr 2012 11:38:52 +0000 Subject: [PATCH] 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 --- libretroshare/src/distrib/p3distribsecurity.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/distrib/p3distribsecurity.cc b/libretroshare/src/distrib/p3distribsecurity.cc index 50cf418d8..1e1100745 100644 --- a/libretroshare/src/distrib/p3distribsecurity.cc +++ b/libretroshare/src/distrib/p3distribsecurity.cc @@ -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;