From 3a80e42b78bc3210ab3e39b4ea2eebb3bff0d98f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 4 Dec 2012 15:42:52 +0000 Subject: [PATCH] -fix --- src/namestore/namestore_common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: -- 2.25.1