diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-06-27 15:16:32 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-06-27 15:16:32 +0000 |
commit | 2f50296dd6848542ee4a8dd046835be9341f190f (patch) | |
tree | 6762d927a891f2a97e82f3b46433a8c26a3d9d95 /src/transport/plugin_transport_http_common.c | |
parent | 3bacc8e2efa8271ad02802d2c1b580401eaa5bb3 (diff) | |
download | gnunet-2f50296dd6848542ee4a8dd046835be9341f190f.tar.gz gnunet-2f50296dd6848542ee4a8dd046835be9341f190f.zip |
fix printing
Diffstat (limited to 'src/transport/plugin_transport_http_common.c')
-rw-r--r-- | src/transport/plugin_transport_http_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_http_common.c b/src/transport/plugin_transport_http_common.c index 5830ab63c..257273161 100644 --- a/src/transport/plugin_transport_http_common.c +++ b/src/transport/plugin_transport_http_common.c | |||
@@ -277,7 +277,7 @@ http_common_plugin_address_to_string (void *cls, char *plugin, const void *addr, | |||
277 | if (addr_str[ntohl(address->urlen) -1] != '\0') | 277 | if (addr_str[ntohl(address->urlen) -1] != '\0') |
278 | return NULL; | 278 | return NULL; |
279 | 279 | ||
280 | GNUNET_asprintf (&res, "%s.%u.%s", plugin, address->options, &address[1]); | 280 | GNUNET_asprintf (&res, "%s.%u.%s", plugin, ntohl(address->options), &address[1]); |
281 | if (strlen(res) + 1 < 500) | 281 | if (strlen(res) + 1 < 500) |
282 | { | 282 | { |
283 | memcpy (rbuf, res, strlen(res) + 1); | 283 | memcpy (rbuf, res, strlen(res) + 1); |