From: Christian Grothoff Date: Tue, 4 Dec 2012 15:42:52 +0000 (+0000) Subject: -fix X-Git-Tag: initial-import-from-subversion-38251~10628 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3a80e42b78bc3210ab3e39b4ea2eebb3bff0d98f;p=oweals%2Fgnunet.git -fix --- diff --git a/src/namestore/namestore_common.c b/src/namestore/namestore_common.c index 8f3d3c522..09b5b46e9 100644 --- a/src/namestore/namestore_common.c +++ b/src/namestore/namestore_common.c @@ -435,13 +435,13 @@ GNUNET_NAMESTORE_value_to_string (uint32_t type, return NULL; /* malformed */ vpn = data; GNUNET_CRYPTO_hash_to_enc (&vpn->peer, &s_peer); - if (0 == GNUNET_asprintf (&vpn_str, "%hu %s %s", - vpn->proto, + if (0 == GNUNET_asprintf (&vpn_str, "%u %s %s", + (unsigned int) ntohl (vpn->proto), (const char*) &s_peer, (const char*) &vpn[1])) { - GNUNET_free (vpn_str); - return NULL; + GNUNET_free (vpn_str); + return NULL; } return vpn_str; case GNUNET_DNSPARSER_TYPE_SRV: