diff options
author | Nils Durner <durner@gnunet.org> | 2010-11-27 15:47:58 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2010-11-27 15:47:58 +0000 |
commit | 8de189bfcf8a5d6d4713c9151a7746a94c54c9a8 (patch) | |
tree | 5591dbf648d393fee1bf79d3c899c3a5e6288619 /src/nat/upnp-commands.c | |
parent | ba52efc2cea97fa337aa850f3cb23ecde0443a3b (diff) | |
download | gnunet-8de189bfcf8a5d6d4713c9151a7746a94c54c9a8.tar.gz gnunet-8de189bfcf8a5d6d4713c9151a7746a94c54c9a8.zip |
MinGW
Diffstat (limited to 'src/nat/upnp-commands.c')
-rw-r--r-- | src/nat/upnp-commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nat/upnp-commands.c b/src/nat/upnp-commands.c index d9962117d..00655f753 100644 --- a/src/nat/upnp-commands.c +++ b/src/nat/upnp-commands.c | |||
@@ -320,12 +320,12 @@ parse_url (const char *url, char *hostname, unsigned short *port, char **path) | |||
320 | 320 | ||
321 | if (!p2 || (p2 > p3)) | 321 | if (!p2 || (p2 > p3)) |
322 | { | 322 | { |
323 | strncpy (hostname, p1, MIN (MAX_HOSTNAME_LEN, (int) (p3 - p1))); | 323 | strncpy (hostname, p1, GNUNET_MIN (MAX_HOSTNAME_LEN, (int) (p3 - p1))); |
324 | *port = 80; | 324 | *port = 80; |
325 | } | 325 | } |
326 | else | 326 | else |
327 | { | 327 | { |
328 | strncpy (hostname, p1, MIN (MAX_HOSTNAME_LEN, (int) (p2 - p1))); | 328 | strncpy (hostname, p1, GNUNET_MIN (MAX_HOSTNAME_LEN, (int) (p2 - p1))); |
329 | *port = 0; | 329 | *port = 0; |
330 | p2++; | 330 | p2++; |
331 | 331 | ||