* Copyright (C) 1995-2006, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: tcpip.c,v 1.25 2006-09-01 10:39:09 adam Exp $
+ * $Id: tcpip.c,v 1.26 2006-09-01 11:27:20 adam Exp $
*/
/**
* \file tcpip.c
host[sizeof(host)-1] = 0;
if ((p = strchr(host, '/')))
*p = 0;
- if ((p = strchr(host, ':')))
+ if ((p = strrchr(host, ':')))
{
*p = '\0';
port = p+1;
buf[sizeof(buf)-1] = 0;
if ((p = strchr(buf, '/')))
*p = 0;
- if ((p = strchr(buf, ':')))
+ if ((p = strrchr(buf, ':')))
{
*p = 0;
port = atoi(p + 1);