[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12545 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12545 - gnunet/src/util |
Date: |
Sat, 14 Aug 2010 23:33:12 +0200 |
Author: grothoff
Date: 2010-08-14 23:33:12 +0200 (Sat, 14 Aug 2010)
New Revision: 12545
Modified:
gnunet/src/util/common_logging.c
Log:
fix
Modified: gnunet/src/util/common_logging.c
===================================================================
--- gnunet/src/util/common_logging.c 2010-08-14 21:14:48 UTC (rev 12544)
+++ gnunet/src/util/common_logging.c 2010-08-14 21:33:12 UTC (rev 12545)
@@ -473,6 +473,7 @@
GNUNET_h2s (const GNUNET_HashCode * hc)
{
static struct GNUNET_CRYPTO_HashAsciiEncoded ret;
+
GNUNET_CRYPTO_hash_to_enc (hc, &ret);
ret.encoding[8] = '\0';
return (const char *) ret.encoding;
@@ -490,8 +491,9 @@
GNUNET_h2s_full (const GNUNET_HashCode * hc)
{
static struct GNUNET_CRYPTO_HashAsciiEncoded ret;
+
GNUNET_CRYPTO_hash_to_enc (hc, &ret);
- ret.encoding[104] = '\0';
+ ret.encoding[sizeof(ret)-1] = '\0';
return (const char *) ret.encoding;
}
@@ -508,6 +510,7 @@
GNUNET_i2s (const struct GNUNET_PeerIdentity *pid)
{
static struct GNUNET_CRYPTO_HashAsciiEncoded ret;
+
GNUNET_CRYPTO_hash_to_enc (&pid->hashPubKey, &ret);
ret.encoding[4] = '\0';
return (const char *) ret.encoding;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12545 - gnunet/src/util,
gnunet <=